public void updateFaculty(string id, faculty f) { faculty dbf = database.faculties.First(data => data.idfaculty == id); dbf = f; database.SaveChanges(); }
public void deleteFaculty(string id) { faculty f = database.faculties.First(data => data.idfaculty == id); database.faculties.Remove(f); }
public faculty getFaculty(string id) { faculty f = database.faculties.First(data => data.idfaculty == id); return(f); }
public void insertFaculty(ref faculty f) { database.faculties.Add(f); database.SaveChanges(); }