Пример #1
0
 public void Update(Location Location)
 {
     _context.Entry(Location).State = EntityState.Modified;
     _context.SaveChanges();
 }
Пример #2
0
 public void Add(Location Location)
 {
     _context.Locations.Add(Location);
     _context.SaveChanges();
 }