DD.WellWorkover.Cloud/AsbCloudApp/Services/IWellSectionService.cs

19 lines
967 B
C#
Raw Normal View History

2021-08-10 14:35:49 +05:00
using AsbCloudApp.Data;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
2021-08-10 16:37:36 +05:00
public interface IWellSectionService
2021-08-10 14:35:49 +05:00
{
2021-08-10 16:37:36 +05:00
Task<PaginationContainer<WellSectionDto>> GetAllByWellIdAsync(int idWell, int skip = 0, int take = 32, CancellationToken token = default);
Task<WellSectionDto> GetAsync(int id, CancellationToken token = default);
Task<WellSectionDto> InsertAsync(WellSectionDto newItem, int idWell, CancellationToken token = default);
2021-08-12 11:50:04 +05:00
Task<IEnumerable<WellSectionDto>> InsertRangeAsync(int idWell, IEnumerable<WellSectionDto> newItems, CancellationToken token = default);
Task<WellSectionDto> UpdateAsync(int idWell, int idSection, WellSectionDto item, CancellationToken token = default);
2021-08-10 16:37:36 +05:00
Task<int> DeleteAsync(IEnumerable<int> ids, CancellationToken token = default);
2021-08-13 12:33:05 +05:00
Task<string[]> GetTypesAsync(CancellationToken token);
2021-08-10 14:35:49 +05:00
}
}