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

30 lines
952 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AsbCloudApp.Data;
namespace AsbCloudApp.Services
{
public interface IWellOperationService
{
IEnumerable<WellOperationCategoryDto> GetTypes();
Task<PaginationContainer<WellOperationDto>> GetAllByWellIdAsync(int idWell,
int skip = 0, int take = 32, CancellationToken token = default);
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);
}
}