Ejemplo n.º 1
0
        // GET: SalaryTabulator
        public ActionResult Index()
        {
            sb.Clear();
            sb.Append("Retrieve Salary tabulators");
            SeriLogHelper.WriteInformation(null, sb.ToString());
            var salaryTabulatorsDTO = new List <SalaryTabulatorDTO>();

            return(View(salaryTabulatorsDTO));
        }
Ejemplo n.º 2
0
        // GET: Employee
        public ActionResult Index()
        {
            sb.Clear();
            sb.Append("Retrieve employees");
            SeriLogHelper.WriteInformation(null, sb.ToString());
            var employees = new List <EmployeeDTO>();

            ViewBag.DepartamentId     = new SelectList(AutoMapperConfiguration.Instance.Mapper.Map <IEnumerable <DepartamentDTO> >(_departamentService.GetMany(x => x.Active == true)), "Id", "Name");
            ViewBag.SalaryTabulatorId = new SelectList(AutoMapperConfiguration.Instance.Mapper.Map <IEnumerable <SalaryTabulatorDTO> >(_salaryTabulatorService.GetMany(x => x.Active == true)), "Id", "Key");

            return(View(employees));
        }