コード例 #1
0
 public Models.Location Update(Models.Location locationRecord)
 {
     this.dbContext.Entry(locationRecord).State = EntityState.Modified;
     this.dbContext.SaveChanges();
     return(locationRecord);
 }
コード例 #2
0
 public Models.Location Add(Models.Location locationRecord)
 {
     this.dbContext.Add(locationRecord);
     this.dbContext.SaveChanges();
     return(locationRecord);
 }