예제 #1
0
 /// <summary>
 ///   Show Data  For Add New UserRole
 /// </summary>
 /// <returns></returns>
 public ViewResult AddUserRole()
 {
     //做为 DropDownList DataSource
     ViewBag.rolemodel = roleService.GetList();
     var model = new Infrastructure.Crosscutting.Authorize.Dto.UserRoleDto();
     return View(model);
 }
예제 #2
0
        /// <summary>
        ///   Show Data  For Add New UserRole
        /// </summary>
        /// <returns></returns>
        public ViewResult AddUserRole()
        {
            //做为 DropDownList DataSource
            ViewBag.rolemodel = roleService.GetList();
            var model = new Infrastructure.Crosscutting.Authorize.Dto.UserRoleDto();

            return(View(model));
        }