Esempio n. 1
0
 public int Them(NGUOIDUNG lpDTO)
 {
     try
     {
         LinQDataContext db = new LinQDataContext(global::DAOAuction.Properties.Settings.Default.webdoantruongConnectionString);
         db.NGUOIDUNG_add(
            lpDTO.Username,
            EncryptPassword(lpDTO.Password),
            lpDTO.HoTen,
            lpDTO.Email,
            lpDTO.MaVaiTro
            );
         return 1;
     }
     catch
     {
         return 0;
     }
 }