Пример #1
0
        public async Task <IActionResult> DeleteClientRelatives([FromBody] DeleteClientRelativesRequest request)
        {
            await _clientService.DeleteClientRelatives(request);

            return(Ok());
        }
Пример #2
0
 public async Task DeleteClientRelatives(DeleteClientRelativesRequest request)
 {
     await _repository.DeleteClientRelatives(request);
 }
Пример #3
0
 public async Task DeleteClientRelatives(DeleteClientRelativesRequest request)
 {
     await _db.ClientRelation.Where(a => a.ClientId == request.ClientId && request.RelatedClients.Contains(a.RelativeId)).DeleteAsync();
 }