示例#1
0
        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);
            }
        }
示例#2
0
 public bool PostCity(Models.Il model)
 {
     db.Il.Add(model);
     db.SaveChanges();
     return(true);
 }