public Models.Location Update(Models.Location locationRecord) { this.dbContext.Entry(locationRecord).State = EntityState.Modified; this.dbContext.SaveChanges(); return(locationRecord); }
public Models.Location Add(Models.Location locationRecord) { this.dbContext.Add(locationRecord); this.dbContext.SaveChanges(); return(locationRecord); }