public ActionResult EditProfile(ModelWrapper m) { var userId = User.Identity.GetUserId(); //var model = m.EditProfileBindingModel; var profile = this.Data.Users.All().FirstOrDefault(u => u.Id == userId); //TODO: Mapping return Content(""); }
// GET: User Profile => Profile/Show public ActionResult Details(string username) { var user = this.UserProfile; if (username != null) { user = this.Data.Users.All().FirstOrDefault(u => u.UserName == username); } if (user == null) { return this.HttpNotFound(); } var result = Mapper.Map<User, UserPersonalDataViewModel>(user); var output = new ModelWrapper {UserPersonalDataViewModel = result}; return View(output); }