forked from ddrilling/AsbCloudServer
18 lines
904 B
C#
18 lines
904 B
C#
using AsbCloudApp.Data;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IWellSectionService
|
|
{
|
|
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);
|
|
Task<IEnumerable<WellSectionDto>> InsertRangeAsync(int idWell, IEnumerable<WellSectionDto> newItems, CancellationToken token = default);
|
|
Task<WellSectionDto> UpdateAsync(int idWell, int idSection, WellSectionDto item, CancellationToken token = default);
|
|
Task<int> DeleteAsync(IEnumerable<int> ids, CancellationToken token = default);
|
|
}
|
|
}
|