Example #1
0
 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());
 }
Example #2
0
        public PartialViewResult Index()
        {
            var model = serviceCategory.GetAllCategories();

            return(PartialView(model));
        }