예제 #1
0
        public void Delete(int universityId)
        {
            var university = new University { Id = universityId };
            _universities.Attach(university);

            _universities.Remove(university);
        }
예제 #2
0
        public void Edit(University university)
        {
            _universities.Attach(university);

            _dbcontext.Entry(university).Property(u => u.Name).IsModified = true;
        }
예제 #3
0
 public void Add(University university)
 {
     _universities.Add(university);
 }