public Predmet Edit(Predmet predmet) { _context.Update(predmet); _context.SaveChanges(); return(predmet); }
public Student Edit(Student student) { _context.Update(student); _context.SaveChanges(); return(student); }
public Ispit Edit(Ispit ispit, string Student, string Predmet) { var StudentIme = StudentImeFunc(Student); var PredmetIme = PredmetImeFunc(Predmet); if (StudentIme == null || PredmetIme == null) { return(ispit); } else { ispit.BrojIndexa = StudentIme.BrojIndexa; ispit.PredmetId = PredmetIme.PredmetId; _context.Update(ispit); _context.SaveChanges(); return(ispit); } }