32 lines
838 B
C#
Raw Normal View History

2025-02-18 01:17:27 +04:00
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<ComponentDataModel> 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<ComponentHistoryDataModel> GetComponentHistory(string componentId);
}
}