// // GET: /Profile/ public ActionResult Index(string user) { UserProfile profile = new UserProfile(); //If userpage is null or user doesent exsist return 404 if (user == null || !profile.GetProfileDetails(user)) return HttpNotFound(); return View(); }