コード例 #1
0
ファイル: UserRepository.cs プロジェクト: Gabriel95/OPM
 public User Update(User itemToUpdate)
 {
     _context.Entry(itemToUpdate).State = EntityState.Modified;
     _context.SaveChanges();
     return(itemToUpdate);
 }
コード例 #2
0
ファイル: RecordRepository.cs プロジェクト: Gabriel95/OPM
 public Record Update(Record itemToUpdate)
 {
     _context.Entry(itemToUpdate).State = EntityState.Modified;
     _context.SaveChanges();
     return(itemToUpdate);
 }
コード例 #3
0
 public Patient Update(Patient itemToUpdate)
 {
     _context.Entry(itemToUpdate).State = EntityState.Modified;
     _context.SaveChanges();
     return(itemToUpdate);
 }