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()); }
public Boolean Insert(ThanhVien nx) { return(db.Insert(nx)); }