public ActionResult Details(string id) { var userModel = bllModel.GetDetailedUser(id); if (userModel == null) { return(HttpNotFound()); } return(View(userModel)); }
public IHttpActionResult GetUser(string id) { var userModel = bllModel.GetDetailedUser(id); if (userModel == null) { return(NotFound()); } return(Json(userModel)); }