示例#1
0
        public ActionResult Details(string id)
        {
            var userModel = bllModel.GetDetailedUser(id);

            if (userModel == null)
            {
                return(HttpNotFound());
            }

            return(View(userModel));
        }
示例#2
0
        public IHttpActionResult GetUser(string id)
        {
            var userModel = bllModel.GetDetailedUser(id);

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

            return(Json(userModel));
        }