Example #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));
        }
Example #2
0
        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));
        }