diff --git a/AsbCloudInfrastructure/Services/WellContactService.cs b/AsbCloudInfrastructure/Services/WellContactService.cs index 29ccde7f..01ac108a 100644 --- a/AsbCloudInfrastructure/Services/WellContactService.cs +++ b/AsbCloudInfrastructure/Services/WellContactService.cs @@ -22,7 +22,6 @@ namespace AsbCloudInfrastructure.Services public async Task> GetAsync(int wellId, int contactTypeId, CancellationToken token) { - var query = db.Companies .Where(c => c.IdCompanyType == contactTypeId) .Where(c => c.RelationCompaniesWells.Any(rc => rc.IdWell == wellId)) @@ -81,21 +80,5 @@ namespace AsbCloudInfrastructure.Services return await db.SaveChangesAsync(token) .ConfigureAwait(false); } - - private static UserContactDto Convert(User u, int wellId) - { - return new UserContactDto() - { - Id = u.Id, - Name = u.Name, - Patronymic = u.Patronymic, - Surname = u.Surname, - Company = u.Company.Adapt(), - Email = u.Email, - Phone = u.Phone, - Position = u.Position, - IsContact = u.RelationContactsWells.Any(rel => rel.IdWell == wellId) - }; - } } }