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