Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using SupplierManual.Services;
- namespace SupplierManual.Web.Controllers
- {
- public class HomeController : Controller
- {
- public ActionResult Index()
- {
- ViewBag.Message = "Welcome to ASP.NET MVC!";
- return View();
- }
- public ActionResult About()
- {
- return View();
- }
- public ActionResult ManageUsers()
- {
- UserService userService = new UserService();
- var users = userService.GetAdministrators().ToList();
- return View(users);
- }
- }
- }
Add Comment
Please, Sign In to add comment