public async Task <ResultServiceVM> Put(Guid id, ClientUpdateInVM clientUpdateInVM) { ResultServiceVM resultServiceVM = new ResultServiceVM(); UpdateClientCommand updateClientCommand = Mapper.Map <UpdateClientCommand>(clientUpdateInVM); updateClientCommand.Id = id; await _clientService.Update(updateClientCommand); resultServiceVM.Messages.AddRange(_notifications.GetNotificationsMessages()); return(resultServiceVM); }
// PUT api/values/5 public async Task <ResultServiceVM> Put(Guid id, ClientUpdateInVM clientUpdateInVM) { return(await _clientApp.Put(id, clientUpdateInVM)); }