public async Task <ActionResult <Client> > Copy(string client) { var clientDb = new CopyClientViewModel(client); await _clientAppService.Copy(clientDb); var newClient = await _clientAppService.GetClientDetails(client); return(ResponsePost(nameof(GetClient), new { client }, newClient)); }
public async Task <ActionResult <DefaultResponse <bool> > > Copy([FromBody] CopyClientViewModel client) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(false)); } await _clientAppService.Copy(client); return(Response(true)); }