예제 #1
0
        public async Task <ActionResult> Index(SystemUserSM sm)
        {
            var Dtos = await userAccountRepo.GetUserList(sm);

            var Vms = Mapper.Map <List <AccountDetailDTO>, List <AccountDetailVM> >(Dtos);

            if (Request.IsAjaxRequest())
            {
                return(PartialView("_List", Vms));
            }
            ViewBag.RoleList = userRoleRepo.GetList();
            return(View(Vms));
        }
예제 #2
0
파일: Form1.cs 프로젝트: YongLWei03/EM-2
        private void Form1_Load(object sender, EventArgs e)
        {
            var roleList = userRoleRepo.GetList();

            foreach (var item in roleList)
            {
                RoleId.DataSource = roleList;
            }
        }
        public async Task <ActionResult> Add()
        {
            InitSelect();
            ViewBag.roleList = userRoleRepo.GetList();
            var model = new EM_Company_Performance();

            model.UploadDate = DateTime.Now;
            return(View(model));
        }