public string Login(LoginViewModel viewModel)
        {
            if (string.IsNullOrEmpty(viewModel.email))
            {
                return(JsonConvert.
                       SerializeObject(new ResultViewModel(
                                           "Email không được để trống",
                                           "Đã xảy ra lỗi trong quá trình đăng nhập")));
            }

            if (string.IsNullOrEmpty(viewModel.password))
            {
                return(JsonConvert.
                       SerializeObject(new ResultViewModel(
                                           "Password không được để trống",
                                           "Đã xảy ra lỗi trong quá trình đăng nhập")));
            }

            try
            {
                var addr = new System.Net.Mail.MailAddress(viewModel.email);
                if (addr.Address != viewModel.email)
                {
                    throw new System.Exception();
                }
            }
            catch
            {
                return(JsonConvert.
                       SerializeObject(new ResultViewModel(
                                           "Email không hợp lệ",
                                           "Đã xảy ra lỗi trong quá trình đăng nhập")));
            }

            var TaiKhoan = Authentication_DAO.layTaiKhoan(viewModel.email, viewModel.password);

            if (TaiKhoan == null)
            {
                return(JsonConvert.
                       SerializeObject(new ResultViewModel(
                                           "Nhập sai tên đăng nhập hoặc mật khẩu",
                                           "Đã xảy ra lỗi trong quá trình đăng nhập")));
            }
            else if (TaiKhoan.TrangThai == false)
            {
                return(JsonConvert.
                       SerializeObject(new ResultViewModel(
                                           "Tài khoản này đã bị vô hiệu hóa",
                                           "Đã xảy ra lỗi trong quá trình đăng nhập")));
            }
            else
            {
                Session.Add("User", TaiKhoan);
            }

            return("");
        }