コード例 #1
0
 // GET: Role
 public ActionResult Index()
 {
     using (var ctx = new MypacSMS.Data.MypacSMSContext())
     {
         var items = ctx.AspNetRoles.ToList <Models.AspNetRoles>();
         return(View(items));
     }
 }
コード例 #2
0
 public RoleController(MypacSMS.Data.MypacSMSContext context)
 {
     this.context = context;
 }