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

19 lines
823 B
C#
Raw Normal View History

2021-08-27 17:55:22 +05:00
using AsbCloudApp.Data;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
2021-08-27 17:55:22 +05:00
public interface ILastDataService
{
2021-08-27 17:55:22 +05:00
Task<Dictionary<int, string>> GetCategoriesAsync(CancellationToken token);
Task<IEnumerable<LastDataDto>> GetHisoryAsync(int idWell, int idCategory, CancellationToken token);
Task<IEnumerable<LastDataDto>> GetAllLastAsync(int idWell, CancellationToken token);
Task<int> InsertAsync(int idWell, LastDataDto data, CancellationToken token);
Task<int> UpdateAsync(int idWell, LastDataDto data, CancellationToken token);
Task<int> MarkAsDeleteAsync(int idWell, int idData, CancellationToken token);
Task<int> DeleteAsync(int idWell, int idData, CancellationToken token);
}
}