Guest User

Untitled

a guest
Feb 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using SupplierManual.Services;
  7.  
  8. namespace SupplierManual.Web.Controllers
  9. {
  10.     public class HomeController : Controller
  11.     {
  12.         public ActionResult Index()
  13.         {
  14.             ViewBag.Message = "Welcome to ASP.NET MVC!";
  15.             return View();
  16.         }
  17.  
  18.         public ActionResult About()
  19.         {
  20.             return View();
  21.         }
  22.  
  23.         public ActionResult ManageUsers()
  24.         {
  25.             UserService userService = new UserService();
  26.             var users = userService.GetAdministrators().ToList();
  27.             return View(users);
  28.         }
  29.  
  30.     }
  31. }
Add Comment
Please, Sign In to add comment