2021-08-16 14:19:43 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
2021-08-13 17:25:06 +05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IWellOperationService
|
|
|
|
|
{
|
2021-08-16 14:19:43 +05:00
|
|
|
|
IEnumerable<WellOperationCategoryDto> GetTypes();
|
|
|
|
|
|
2021-08-13 17:25:06 +05:00
|
|
|
|
Task<PaginationContainer<WellOperationDto>> GetAllByWellIdAsync(int idWell,
|
|
|
|
|
int skip = 0, int take = 32, CancellationToken token = default);
|
2021-08-16 14:19:43 +05:00
|
|
|
|
|
|
|
|
|
Task<WellOperationDto> GetAsync(int id, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
Task<int> InsertAsync(WellOperationDto wellOperationDto,
|
|
|
|
|
int idWell, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
Task<int> InsertRangeAsync(int idWell,
|
|
|
|
|
IEnumerable<WellOperationDto> wellOperationDtos, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
Task<int> UpdateAsync(int idWell, int idSection, WellOperationDto item,
|
|
|
|
|
CancellationToken token);
|
|
|
|
|
|
|
|
|
|
Task<int> DeleteAsync(IEnumerable<int> ids, CancellationToken token);
|
2021-08-13 17:25:06 +05:00
|
|
|
|
}
|
|
|
|
|
}
|