public bool PutCity(Models.Il model) { var test = db.Il.FirstOrDefault(m => m.ilID == model.ilID); if (test != null) { test.il1 = model.il1; db.SaveChanges(); return(true); } else { return(false); } }
public bool PostCity(Models.Il model) { db.Il.Add(model); db.SaveChanges(); return(true); }