예제 #1
0
        // GET: Service
        public async Task <ActionResult> Index(string message)
        {
            ViewBag.StatusMessage = message;

            var viewModel = new SelectList(await _serviceCategoryManager.GetAllAsync(), "Id", "Name");

            return(View(viewModel));
        }
예제 #2
0
 // GET: ServiceCategories
 public async Task <ActionResult> Index()
 {
     return(View(await _serviceCategoryManager.GetAllAsync()));
 }