Ejemplo n.º 1
0
        public void updateFaculty(string id, faculty f)
        {
            faculty dbf = database.faculties.First(data => data.idfaculty == id);

            dbf = f;
            database.SaveChanges();
        }
Ejemplo n.º 2
0
        public void deleteFaculty(string id)
        {
            faculty f = database.faculties.First(data => data.idfaculty == id);

            database.faculties.Remove(f);
        }
Ejemplo n.º 3
0
        public faculty getFaculty(string id)
        {
            faculty f = database.faculties.First(data => data.idfaculty == id);

            return(f);
        }
Ejemplo n.º 4
0
 public void insertFaculty(ref faculty f)
 {
     database.faculties.Add(f);
     database.SaveChanges();
 }