Esempio n. 1
0
 public ActionResult Create(ContentViewModel model)
 {
     if (ModelState.IsValid)
     {
         int result = 0;
         result = ch.AddContent(model);
         if (result > 0)
         {
             return(RedirectToAction("index", "content", new { area = "admin" }));
         }
     }
     ViewBag.Category = new SelectList(new CategoryHelper().GetCategoryList(), "Id", "Name");
     return(View());
 }