Esempio n. 1
0
        public ActionResult Put([FromBody] UsuarioViewModel vm)
        {
            try
            {
                var dto = _usuarioServices.Edit(_mapper.Map <UsuarioViewModel, UsuarioDto>(vm));

                return(Ok(TasksResult(dto)));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }