forked from ddrilling/AsbCloudServer
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using AsbCloudApp.Data;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Repositories
|
|
{
|
|
#nullable enable
|
|
/// <summary>
|
|
/// Репозиторий создания композитной скважины
|
|
/// </summary>
|
|
public interface IWellCompositeRepository
|
|
{
|
|
/// <summary>
|
|
/// Получить секции композитной скважины
|
|
/// </summary>
|
|
/// <param name="idWell"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<WellCompositeDto>> GetAsync(int idWell, CancellationToken token);
|
|
|
|
/// <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);
|
|
}
|
|
#nullable disable
|
|
}
|