public ActionResult List() { return(View("_List", PayrollPeriodRepo.Get())); }
public ActionResult SelectPeriod() { return(PartialView("_SelectPeriod", PayrollPeriodRepo.Get())); }
//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))); }
// GET api/<controller> public IEnumerable <PayrollPeriodViewModel> Get() { return(PayrollPeriodRepo.Get()); }
//GET CREATE public ActionResult Create() { ViewBag.PayrollPeriodList = new SelectList(PayrollPeriodRepo.Get(), "Id", "PeriodYear"); ViewBag.SalaryComponentList = new SelectList(SalaryComponentRepo.Get(), "Id", "Description"); return(View("_Create")); }