partial void DeleteSalesPromotion(SalesPromotion instance);
 partial void InsertSalesPromotion(SalesPromotion instance);
 partial void UpdateSalesPromotion(SalesPromotion instance);
 public int Insert(SalesPromotionModelShow item)
 {
     s26webDataContext db = new s26webDataContext();
     try
     {
         SalesPromotion new_item = new SalesPromotion
         {
             Code = item.Code,
             Name = item.Name,
             Point = item.Point,
             Deadline = item.Deadline,
             CreateTime = DateTime.UtcNow
         };
         db.SalesPromotion.InsertOnSubmit(new_item);
         db.SubmitChanges();
         db.Connection.Close();
         return new_item.Id;
     }
     catch
     {
         return -1;
     }
 }