public void Delete(int universityId) { var university = new University { Id = universityId }; _universities.Attach(university); _universities.Remove(university); }
public void Edit(University university) { _universities.Attach(university); _dbcontext.Entry(university).Property(u => u.Name).IsModified = true; }
public void Add(University university) { _universities.Add(university); }