Пример #1
0
 // GET api/<controller>/5
 public EmployeeSalaryViewModel Get(int id)
 {
     return(EmployeeSalaryRepo.GetById(id));
 }
Пример #2
0
 //GET DETAILS
 public ActionResult Details(int id)
 {
     return(View(EmployeeSalaryRepo.GetById(id)));
 }
Пример #3
0
 //EDIT GET
 public ActionResult Edit(int id)
 {
     return(View("_Edit", EmployeeSalaryRepo.GetById(id)));
 }
Пример #4
0
 //DELETE GET
 public ActionResult Delete(int id)
 {
     return(View("_Delete", EmployeeSalaryRepo.GetById(id)));
 }
Пример #5
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)));
 }