Пример #1
0
        public ActionResult Delete([FromBody] UserDTO userDTO)
        {
            try
            {
                _applicationServiceUser.Remove(userDTO);

                return(Ok("Cliente Removido com sucesso!"));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
        public ActionResult Delete([FromBody] UserDTO userDTO)
        {
            try
            {
                if (userDTO == null)
                {
                    return(NotFound());
                }

                _applicationServiceUser.Remove(userDTO);
                return(Ok("Usuário Removido com sucesso!"));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #3
0
        public ActionResult Remove([FromBody] UserDTO userDTO)
        {
            try
            {
                if (userDTO == null)
                {
                    return(NotFound());
                }

                _applicationServiceUser.Remove(userDTO);
                return(Ok());
            }
            catch (Exception)
            {
                throw;
            }
        }