public void Add(NewUserProfileModel newProfile) { if (newProfile == null) { throw new ArgumentNullException(); } _profiles.Add(newProfile); }
public ActionResult Create(NewUserProfileModel newUserProfile) { if (!ModelState.IsValid) { return View(newUserProfile); } var userRepositor = new UserRepository(); TempData["Message"] = Resources.Controllers.UserProfilesRes.ProfileCreatedMessage; return RedirectToAction("Index"); }