예제 #1
0
        public ActionResult Create()
        {
            EmployeeDetailModels model = new EmployeeDetailModels();

            model.GetListRole(CurrentUser.RoleLevel);
            model.ListRole    = model.ListRole.Where(w => w.Value != CurrentUser.RoleID).ToList();
            model.CreateUser  = CurrentUser.UserId;
            model.ListCountry = _factory.GetListCountry();
            //get local country
            model.Country = model.ListCountry.Where(ww => ww.Alpha2Code == CurrentCountryCode).Select(ss => ss.Name).FirstOrDefault();
            return(View(model));
        }