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)); }
public Task <bool> RemoveProperty(RemovePropertyViewModel model) { var registerCommand = _mapper.Map <RemovePropertyCommand>(model); return(Bus.SendCommand(registerCommand)); }
public Task RemoveProperty(RemovePropertyViewModel model) { throw new System.NotImplementedException(); }