Пример #1
0
 public ActionResult List()
 {
     return(View("_List", PayrollPeriodRepo.Get()));
 }
Пример #2
0
 public ActionResult SelectPeriod()
 {
     return(PartialView("_SelectPeriod", PayrollPeriodRepo.Get()));
 }
Пример #3
0
 //GET Edit
 public ActionResult Edit(int id)
 {
     ViewBag.PayrollPeriodList   = new SelectList(PayrollPeriodRepo.Get(), "Id", "PeriodYear");
     ViewBag.SalaryComponentList = new SelectList(SalaryComponentRepo.Get(), "Id", "Description");
     return(View("_Edit", EmployeeSalaryRepo.GetById(id)));
 }
Пример #4
0
 // GET api/<controller>
 public IEnumerable <PayrollPeriodViewModel> Get()
 {
     return(PayrollPeriodRepo.Get());
 }
Пример #5
0
 //GET CREATE
 public ActionResult Create()
 {
     ViewBag.PayrollPeriodList   = new SelectList(PayrollPeriodRepo.Get(), "Id", "PeriodYear");
     ViewBag.SalaryComponentList = new SelectList(SalaryComponentRepo.Get(), "Id", "Description");
     return(View("_Create"));
 }