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

30 lines
1.1 KiB
C#
Raw Normal View History

2022-04-11 18:00:34 +05:00
using AsbCloudApp.Data;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
public interface IDrillParamsService : ICrudService<DrillParamsDto>
{
2022-04-11 18:00:34 +05:00
Task<DrillParamsDto> GetDefaultDrillParamsAsync(int idWell, double startDepth,
double endDepth, CancellationToken token = default);
Task<IEnumerable<DrillParamsDto>> GetAllAsync(int idWell,
CancellationToken token = default);
Task<IEnumerable<DrillParamsDto>> GetCompositeAllAsync(int idWell,
CancellationToken token = default);
Task<int> InsertAsync(int idWell, DrillParamsDto dto,
CancellationToken token = default);
2022-04-11 18:00:34 +05:00
Task<int> InsertRangeAsync(int idWell, IEnumerable<DrillParamsDto> dtos,
CancellationToken token = default);
Task<int> UpdateAsync(int idWell, int dtoId, DrillParamsDto dto,
CancellationToken token = default);
Task<int> SaveAsync(int idWell, IEnumerable<DrillParamsDto> dtos, CancellationToken token = default);
}
}