public bool PutLocation(Models.Ilce model) { var test = db.Ilce.FirstOrDefault(m => m.ilceID == model.ilceID); if (test != null) { test.ilce1 = model.ilce1; db.SaveChanges(); return(true); } else { return(false); } }
public bool PostLocation(Models.Ilce model) { db.Ilce.Add(model); db.SaveChanges(); return(true); }