public void Delete(int studyFieldDegreeId) { var studyFieldDegree = new StudyFieldDegree { Id = studyFieldDegreeId }; _studyFieldDegrees.Attach(studyFieldDegree); _studyFieldDegrees.Remove(studyFieldDegree); }
public void Edit(StudyFieldDegree studyFieldDegree) { _studyFieldDegrees.Attach(studyFieldDegree); _dbContext.Entry(studyFieldDegree).Property(sfd => sfd.Name).IsModified = true; }
public void Add(StudyFieldDegree studyFieldDegree) { _studyFieldDegrees.Add(studyFieldDegree); }