Ejemplo n.º 1
0
        public async Task <ActionResult <DefaultResponse <bool> > > Update([FromBody] UpdateApiResourceViewModel model)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(false));
            }
            await _apiResourceAppService.Update(model);

            return(Response(true));
        }
        public Task Update(UpdateApiResourceViewModel model)
        {
            var command = _mapper.Map <UpdateApiResourceCommand>(model);

            return(Bus.SendCommand(command));
        }