예제 #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();
 }