Example #1
0
 //Insert contact
 public bool Insert_contact(string name, string email, string address, string phone, string content)
 {
     ESHOP_CONTACT add = new ESHOP_CONTACT
     {
         CONTACT_NAME = name,
         CONTACT_EMAIL = email,
         CONTACT_CONTENT = content,
         CONTACT_PUBLISHDATE = DateTime.Now,
         CONTACT_ADDRESS = address,
         CONTACT_PHONE = phone,
         CONTACT_TYPE = 0
     };
     db.ESHOP_CONTACTs.InsertOnSubmit(add);
     db.SubmitChanges();
     return true;
 }
Example #2
0
 public bool Insert_request(string name, string email, string title, string content, string address, string phone, string linhvuc)
 {
     ESHOP_CONTACT add = new ESHOP_CONTACT
     {
         CONTACT_NAME = name,
         CONTACT_EMAIL = email,
         CONTACT_TITLE = title,
         CONTACT_CONTENT = content,
         CONTACT_PUBLISHDATE = DateTime.Now,
         CONTACT_ADDRESS = address,
         CONTACT_PHONE = phone,
         CONTACT_ATT1 = linhvuc,
         CONTACT_TYPE = 1
     };
     db.ESHOP_CONTACTs.InsertOnSubmit(add);
     db.SubmitChanges();
     return true;
 }
 partial void DeleteESHOP_CONTACT(ESHOP_CONTACT instance);
 partial void UpdateESHOP_CONTACT(ESHOP_CONTACT instance);
 partial void InsertESHOP_CONTACT(ESHOP_CONTACT instance);
Example #6
0
 public int Insert_contact(string name, string email, string title, string content, string address, string phone, string att)
 {
     ESHOP_CONTACT add = new ESHOP_CONTACT
     {
         CONTACT_NAME = name,
         CONTACT_EMAIL = email,
         CONTACT_TITLE = title,
         CONTACT_CONTENT = content,
         CONTACT_PUBLISHDATE = DateTime.Now,
         CONTACT_ADDRESS = address,
         CONTACT_PHONE = phone,
         CONTACT_TYPE = 1,
         CONTACT_ATT1 = att
     };
     db.ESHOP_CONTACTs.InsertOnSubmit(add);
     db.SubmitChanges();
     return add.CONTACT_ID;
 }