Пример #1
0
        public ActionResult DangKy(string email, string matkhau, string hoten, string sodienthoai, string diachi)
        {
            ThanhVien tv = new ThanhVien();

            tv.Email       = email;
            tv.MatKhau     = Encrypter.MD5Hash(matkhau);
            tv.HoTen       = hoten;
            tv.SoDienThoai = sodienthoai;
            tv.DiaChi      = diachi;
            if (db.Insert(tv))
            {
                return(RedirectToAction("Login", "Login"));
            }

            return(View());
        }
Пример #2
0
 public Boolean Insert(ThanhVien nx)
 {
     return(db.Insert(nx));
 }