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