예제 #1
0
        public IActionResult Put(Guid clienteId, [FromBody] TipoAppViewModel vm)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(vm));
            }

            _TipoAppAppService.Alterar(vm);

            return(Response(vm));
        }
예제 #2
0
        public IActionResult Post([FromBody] TipoAppViewModel vm)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(vm));
            }

            _TipoAppAppService.Registrar(vm);

            return(Response(vm));
        }
예제 #3
0
        public void Alterar(TipoAppViewModel vm)
        {
            var command = _mapper.Map <AlterarTipoAppCommand>(vm);

            _bus.SendCommand(command);
        }
예제 #4
0
        public void Registrar(TipoAppViewModel vm)
        {
            var command = _mapper.Map <RegistrarNovoTipoAppCommand>(vm);

            _bus.SendCommand(command);
        }