public ActionResult UserProfile_Create(DUser_Profile creating, string returnView = "Index") { string returnUrl = returnView.Equals("Index") ? "http://www.jonathan-burrows.com/profile/home" : "http://www.jonathan-burrows.com/profile/Update"; HomeIndexViewModel model = new HomeIndexViewModel { avatars = service.Avatar_GetList(), profile = service.Profile_Create(creating, User.Identity.Name), navSection = infastructure.PageStructure_GetBySelected(35) }; return View(returnView, model); }
public ActionResult Update(DUser_Profile updating) { HomeIndexViewModel model = new HomeIndexViewModel { avatars = service.Avatar_GetList(), profile = service.Profile_Update(updating, User.Identity.Name), navSection = infastructure.PageStructure_GetBySelected(35) }; return View(model); }