// 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()));
 }