Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 partial void DeleteESHOP_CONTACT(ESHOP_CONTACT instance);
Ejemplo n.º 4
0
 partial void UpdateESHOP_CONTACT(ESHOP_CONTACT instance);
Ejemplo n.º 5
0
 partial void InsertESHOP_CONTACT(ESHOP_CONTACT instance);
Ejemplo n.º 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;
 }