using MaintenanceDAL.DTO.TypeComponent; using GB5Shared.DTO.Framework.Login; using System.Collections.Generic; using System.Data.Common; using System.Threading; using System.Threading.Tasks; namespace MaintenanceDAL.CustomCode.TypeComponent { public interface ITypeComponentDAL { Task GetTypeComponent(int typeComponentId, LoginDTO login, CancellationToken ct); Task> GetTypeComponentListByAssetType(int assetTypeId, LoginDTO login, CancellationToken ct); Task SaveTypeComponent(TypeComponentDTO dto, LoginDTO login, DbTransaction tx, CancellationToken ct); Task UpdateTypeComponent(TypeComponentDTO dto, LoginDTO login, DbTransaction tx, CancellationToken ct); Task DeleteTypeComponent(int typeComponentId, LoginDTO login, DbTransaction tx, CancellationToken ct); Task SaveTypeComponentDetail(TypeComponentDetailDTO dto, LoginDTO login, DbTransaction tx, CancellationToken ct); Task DeleteTypeComponentDetailByComponent(int componentId, LoginDTO login, DbTransaction tx, CancellationToken ct); } }