Ejemplo n.º 1
0
        public ActionResult ModifyEmployee(int ID)
        {
            var employee = crudEmployee.Read(ID);

            if (employee != null)
            {
                ViewBag.Selected = true;
            }

            ViewBag.AllCountries = crudCountry.GetAll();
            ViewBag.AllShifts    = showShift.ShowAll();

            return(View(employee));
        }
Ejemplo n.º 2
0
        public ActionResult CashResult(int month, int year, int employeeID)
        {
            CrudEmployee service  = new CrudEmployee();
            var          employee = service.Read(employeeID);

            SalarySummary SalaryService = new SalarySummary();
            var           date          = new DateTime(year, month, 1);


            var summary = SalaryService.Summary(date, employee);

            return(View(summary));
        }