Example #1
0
 public ActionResult Create()
 {
     return(PartialView(new CategoryViewModel
     {
         ddlIsActive = populator.GetPairModel("IsActive"),
         dbModel = new CategoryDetail {
             IsActive = true,
             IsDelete = false
         }
     }));
 }
Example #2
0
 public ActionResult Create()
 {
     ViewBag.CategoryList = GetCategory();
     return(PartialView(new ProductViewModel
     {
         ddlIsActive = populator.GetPairModel("IsActive"),
         dbModel = new ProductDetail
         {
             IsDelete = false,
             CreatedDate = DateTime.Now
         }
     }));
 }