using NorthBridgeContract.DataModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NorthBridgeContract.BusinessLogicsContracts { public interface IComponentBusinessLogicContract { List GetAllComponents(bool onlyActive); ComponentDataModel GetComponentByData(string data); ComponentDataModel? GetComponentById(string id); ComponentDataModel? GetComponentByName(string name); void InsertComponent(ComponentDataModel componentDataModel); void UpdateComponent(ComponentDataModel componentDataModel); void DeleteComponent(string id); void RestoreComponent(string id); List GetComponentHistory(string componentId); } }