예제 #1
0
 public ActionResult EditGenericReviewUser(GenericReviewUserObject model)
 {
     if (!ModelState.IsValid)
     {
         return(View(model));
     }
     model.Save();
     return(RedirectToAction("GenericReviewUsers", new { type = model.ReviewerType }));
 }
예제 #2
0
        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));
        }