public int Delete(DetailOrder obj)
 {
     db.DetailOrders.Remove(obj);
     return(db.SaveChanges());
 }
 public int Insert(DetailOrder obj)
 {
     db.DetailOrders.Add(obj);
     return(db.SaveChanges());
 }