Example #1
0
        public ActionResult Detail(string id)
        {
            IPerson person = this._userManagementRepository.PersonGet(pmsVariable.SearchKey.Id, id);

            ViewBag.Email = person.ExternalEmail;
            PersonModel PersonModel = PresentationMapper.ToModel(person);

            PersonModel.LoadCountryObject(this._lookupServiceRepository);
            return(View(PersonModel));
        }
Example #2
0
        public ActionResult Edit()
        {
            IList <CodeMessage> messages      = new List <CodeMessage>();
            IEmployee           employee      = this._userManagementRepository.EmployeeGet(pmsVariable.SearchKey.Email, ((LoginModel)Session[pmsVariable.SessioKey.LoginCredential]).Email, out messages);
            EmployeeModel       employeeModel = PresentationMapper.ToModel(employee);

            employeeModel.StaffId     = int.Parse(((LoginModel)Session[pmsVariable.SessioKey.LoginCredential]).EmployeeId).ToString();
            employeeModel.PersonModel = PresentationMapper.ToModel(employeeModel.PersonObject);
            employeeModel.LoadList(_lookupServiceRepository);
            employeeModel.PersonModel.LoadList(_lookupServiceRepository);
            return(View(employeeModel));
        }