DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/DrillerService.cs
2022-05-25 20:19:08 +05:00

47 lines
1.3 KiB
C#

using AsbCloudApp.Data;
using AsbCloudApp.Services;
using AsbCloudDb.Model;
using AsbCloudInfrastructure.Services.Cache;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudInfrastructure.Services
{
public class DrillerService : CrudServiceBase<DrillerDto, Driller>, IDrillerService
{
public DrillerService(IAsbCloudDbContext context) : base(context)
{
}
public async Task<int> DeleteAsync(int id, CancellationToken dto)
{
return await base.DeleteAsync(id, dto);
}
public async Task<IEnumerable<DrillerDto>> GetAllAsync(CancellationToken token)
{
return await base.GetAllAsync(token);
}
public async Task<DrillerDto> GetAsync(int id, CancellationToken token)
{
return await base.GetAsync(id,token)
.ConfigureAwait(false);
}
public async Task<int> InsertAsync(DrillerDto dto, CancellationToken token)
{
return await base.InsertAsync(dto, token);
}
public async Task<int> UpdateAsync(int id, DrillerDto dto, CancellationToken token)
{
return await base.UpdateAsync(id,dto, token);
}
}
}