Exemplo n.º 1
0
        public void Delete(int universityId)
        {
            var university = new University { Id = universityId };
            _universities.Attach(university);

            _universities.Remove(university);
        }
Exemplo n.º 2
0
        public void Edit(University university)
        {
            _universities.Attach(university);

            _dbcontext.Entry(university).Property(u => u.Name).IsModified = true;
        }
Exemplo n.º 3
0
 public void Add(University university)
 {
     _universities.Add(university);
 }