Example #1
0
        public ActionResult <UserModel> GetUserById(string id)
        {
            var user = _services.FindById(string.IsNullOrEmpty(id) ? -1 : Convert.ToInt32(id));

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

            return(user);
        }