DD.WellWorkover.Cloud/AsbCloudApp/Services/IWellCompositeService.cs
ngfrolov f4b3dfd9fe doc
2022-08-09 11:10:01 +05:00

31 lines
1.1 KiB
C#

using AsbCloudApp.Data;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
/// <summary>
/// Сервис создания композитной скважины
/// </summary>
public interface IWellCompositeService
{
/// <summary>
/// Получить секции композитной скважины
/// </summary>
/// <param name="idWell"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<IEnumerable<WellCompositeDto>> GetAsync(int idWell, CancellationToken cancellationToken);
/// <summary>
/// сохранить секции композитной скважины
/// </summary>
/// <param name="idWell"></param>
/// <param name="wellComposites"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<int> SaveAsync(int idWell, IEnumerable<WellCompositeDto> wellComposites, CancellationToken token);
}
}