public void DeleteDesignationByDesignationID(int DesignationID) { Designation obj = Db.Designation.Where(temp => temp.DesignationID == DesignationID).FirstOrDefault(); if (obj != null) { Db.Designation.Remove(obj); Db.SaveChanges(); } }
public void DeleteDepartmentByDepartmentID(int DepartmentID) { Department obj = Db.Department.Where(temp => temp.DepartmentID == DepartmentID).FirstOrDefault(); if (obj != null) { Db.Department.Remove(obj); Db.SaveChanges(); } }
public void DeleteEmployeeByEmployeeID(int EmployeeID) { Employee obj = Db.Employee.Where(temp => temp.EmployeeID == EmployeeID).FirstOrDefault(); if (obj != null) { Db.Employee.Remove(obj); Db.SaveChanges(); } }
public void SetNewRequestVacation(RequestVacation obj) { Db.RequestVacation.Add(obj); Db.SaveChanges(); }