Example #1
0
 public JsonResult delete(Office data)
 {
     Office emp = db.office.Find(data.id);
     db.office.Remove(emp);
     db.SaveChanges();
     return null;
 }
Example #2
0
 public JsonResult save(Office data)
 {
     db.office.Add(data);
     db.SaveChanges();
     return null;
 }