예제 #1
0
        public async Task <ActionResult> RemoveProperty(string client, string key)
        {
            var model = new RemovePropertyViewModel(key, client);
            await _clientAppService.RemoveProperty(model);

            return(ResponseDelete());
        }
        public async Task <ActionResult <DefaultResponse <bool> > > RemoveProperty([FromBody] RemovePropertyViewModel model)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(false));
            }
            await _clientAppService.RemoveProperty(model);

            return(Response(true));
        }
예제 #3
0
        public Task <bool> RemoveProperty(RemovePropertyViewModel model)
        {
            var registerCommand = _mapper.Map <RemovePropertyCommand>(model);

            return(Bus.SendCommand(registerCommand));
        }
예제 #4
0
 public Task RemoveProperty(RemovePropertyViewModel model)
 {
     throw new System.NotImplementedException();
 }