Esempio n. 1
0
        public ActionResult <UserDTO> Get(int id)
        {
            try
            {
                var user = _applicationServiceUser.GetById(id);

                if (user == null)
                {
                    return(NoContent());
                }

                return(Ok(user));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
 public ActionResult <string> Get(int id)
 {
     return(Ok(_applicationServiceUser.GetById(id)));
 }