public IActionResult Put(Guid clienteId, [FromBody] TipoAppViewModel vm) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(vm)); } _TipoAppAppService.Alterar(vm); return(Response(vm)); }
public IActionResult Post([FromBody] TipoAppViewModel vm) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(vm)); } _TipoAppAppService.Registrar(vm); return(Response(vm)); }
public void Alterar(TipoAppViewModel vm) { var command = _mapper.Map <AlterarTipoAppCommand>(vm); _bus.SendCommand(command); }
public void Registrar(TipoAppViewModel vm) { var command = _mapper.Map <RegistrarNovoTipoAppCommand>(vm); _bus.SendCommand(command); }