Ejemplo n.º 1
0
 public ActionResult EditEmployee(EmployeeTemp employeeTemp)
 {
     using (var db = new APIAccelistInformationSystemDbContext()) {
         db.EditEmployeeTemp(employeeTemp);
         return(RedirectToAction("EmployeeList"));
     }
 }
Ejemplo n.º 2
0
        public ActionResult RegisterEmployeeTemp(EmployeeTemp employeeTemp)
        {
            using (var db = new AccelistInformationSystemDbContext()) {
                db.RegisterEmployeeTemp(employeeTemp);

                return(RedirectToAction("EmployeeList", "Employee"));
            }
        }
Ejemplo n.º 3
0
 public ActionResult EditEmployee(int employeeId)
 {
     using (var db = new APIAccelistInformationSystemDbContext()) {
         EmployeeTemp employeeTemp = new EmployeeTemp();
         employeeTemp = db.GetEmployeeTempData(employeeId);
         return(View(employeeTemp));
     }
 }
Ejemplo n.º 4
0
 public void RegisterEmployeeTemp(EmployeeTemp employeeTemp)
 {
     //Connection.Insert(new EmployeeTemp{
     //   EmployeeName =  employeeTemp.EmployeeName,
     //   EmployeeEmail = employeeTemp.EmployeeEmail,
     //   EmployeePhone = employeeTemp.EmployeePhone,
     //   EmployeeGender = employeeTemp.EmployeeGender
     //});
 }
Ejemplo n.º 5
0
        public override void Delete(Employee entity)
        {
            EmployeeTemp et = new EmployeeTemp()
            {
                EmployeeID = entity.EmployeeID, FullName = entity.FullName, PhoneNumber = entity.PhoneNumber, Address = entity.Address, Email = entity.Email, DOB = entity.DOB, PayRate = entity.PayRate
            };

            _context.EmployeeTemps.Add(et);
            _context.Employees.Remove(entity);
        }
Ejemplo n.º 6
0
 public void EditEmployeeTemp(EmployeeTemp employeeTemp)
 {
     //Connection.Update(new EmployeeTemp()
     //{
     //    EmployeeId = employeeTemp.EmployeeId,
     //    EmployeeName = employeeTemp.EmployeeName,
     //    EmployeeEmail = employeeTemp.EmployeeEmail,
     //    EmployeePhone = employeeTemp.EmployeePhone,
     //    EmployeeGender = employeeTemp.EmployeeGender
     //});
 }