예제 #1
0
        public void Update(int Id, dbModel.Company model)
        {
            model.Id = Id;

            db.SetModified(model);
            db.SaveChanges();
        }
예제 #2
0
 public void Create(dbModel.Company model)
 {
     db.Company.Add(model);
     db.SaveChanges();
 }