public void AddOrUpdateFaculty(Faculty fac) { using (var scope = Db.BeginWork()) { _facultyRepository.AddOrUpdate(fac); scope.SaveChanges(); } }