예제 #1
0
        public ActionResult IndexJq()
        {
            var repo = new OmbudsmanDb.OmbudsmanRepository();
            var facilities = repo.GetFacilityTypes();
            ViewBag.FacilityTypeId = new SelectList(facilities, "FacilityTypeId", "Name");
            ViewBag.IsManager = System.Web.Security.Roles.IsUserInRole("Manager");

            return View();
        }
 // GET api/facilitytype
 public IEnumerable<Ombudsman.Models.FacilityType> Get()
 {
     var repo = new OmbudsmanDb.OmbudsmanRepository();
     return repo.GetFacilityTypes();
 }