public void DeleteDesignationByDesignationID(int DesignationID)
        {
            Designation obj = Db.Designation.Where(temp => temp.DesignationID == DesignationID).FirstOrDefault();

            if (obj != null)
            {
                Db.Designation.Remove(obj);
                Db.SaveChanges();
            }
        }
예제 #2
0
        public void DeleteDepartmentByDepartmentID(int DepartmentID)
        {
            Department obj = Db.Department.Where(temp => temp.DepartmentID == DepartmentID).FirstOrDefault();

            if (obj != null)
            {
                Db.Department.Remove(obj);
                Db.SaveChanges();
            }
        }
예제 #3
0
        public void DeleteEmployeeByEmployeeID(int EmployeeID)
        {
            Employee obj = Db.Employee.Where(temp => temp.EmployeeID == EmployeeID).FirstOrDefault();

            if (obj != null)
            {
                Db.Employee.Remove(obj);
                Db.SaveChanges();
            }
        }
예제 #4
0
 public void SetNewRequestVacation(RequestVacation obj)
 {
     Db.RequestVacation.Add(obj);
     Db.SaveChanges();
 }