Пример #1
0
 /// <summary>
 // GET: Employee/GetAllEmpDetails
 /// Get all the employee details
 /// </summary>
 /// <returns></returns>
 public ActionResult GetAllEmpDetails()
 {
     ViewBag.Title = "Get All Employee";
     DBOps.DBOps EmpRepo = new DBOps.DBOps();
     ModelState.Clear();
     return(View(EmpRepo.GetAllEmployees()));
 }
Пример #2
0
 /// <summary>
 /// edit the selected employee
 /// GET: Employee/EditEmpDetails/1
 /// </summary>
 /// <param name="id">id of employee</param>
 /// <returns></returns>
 public ActionResult EditEmpDetails(int id)
 {
     ViewBag.Title = "Edit Employee";
     DBOps.DBOps EmpRepo = new DBOps.DBOps();
     return(View(EmpRepo.GetAllEmployees().Find(Emp => Emp.Empid == id)));
 }