public ActionResult Create() { ViewBag.CategoryId = new SelectList(serviceCatogory.GetAllCategories(), "CategoryId", "Name"); ViewBag.DescriptionItemId = new SelectList(serviceDescription.GetAllDescription(), "DescriptionItemId", "Category"); ViewBag.ItemCategory = new SelectList(serviceCatogory.GetAllCategories(), "Name", "Name"); return(View()); }
public PartialViewResult Index() { var model = serviceCategory.GetAllCategories(); return(PartialView(model)); }