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