예제 #1
0
        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));
        }
예제 #3
0
        public Task <bool> Copy(CopyClientViewModel client)
        {
            var command = _mapper.Map <CopyClientCommand>(client);

            return(Bus.SendCommand(command));
        }
예제 #4
0
 public Task Copy(CopyClientViewModel client)
 {
     throw new System.NotImplementedException();
 }