public ActionResult EditGenericReviewUser(GenericReviewUserObject model) { if (!ModelState.IsValid) { return(View(model)); } model.Save(); return(RedirectToAction("GenericReviewUsers", new { type = model.ReviewerType })); }
public ActionResult EditGenericReviewUser(int?id, ReviewerTypeEnum type) { GenericReviewUserObject model = new GenericReviewUserObject(); model.ReviewerTypeEnum = type; if (id.HasValue) { model = MemoryCache.GetGenericUser(id.Value); } return(View(model)); }