public EmployeeLogin SaveEditedValue(EmployeeLogin empLogin) { var loginDetail = EmployeeLogins.SingleOrDefault(EmployeeLogin => EmployeeLogin.EmpLoginID == empLogin.EmpLoginID); loginDetail.DistributionCenterID = empLogin.DistributionCenterID; loginDetail.Full_Name = empLogin.Full_Name; loginDetail.Email = empLogin.Email; SaveChanges(); return loginDetail; }
public EmployeeLogin SaveEditedValue(EmployeeLogin empLogin) { return employeeLoginDao.SaveEditedValue(empLogin); }
public ActionResult EditEmployeeLoginDetail(EmployeeLogin emplLogin) { ViewBag.DistributionCenters = new DistributionCenterService().GetDistributionCenterList(); return View(new EmployeeLoginService().SaveEditedValue(emplLogin)); }