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)); }
public Task <bool> Copy(CopyClientViewModel client) { var command = _mapper.Map <CopyClientCommand>(client); return(Bus.SendCommand(command)); }
public Task Copy(CopyClientViewModel client) { throw new System.NotImplementedException(); }