Example #1
0
        /// <summary>
        /// Verifies donation order entered by user for drawing
        /// </summary>
        /// <param name="cdvm"></param>
        /// <returns></returns>
        public ActionResult GameVerify(ChariDrawViewModel cdvm)
        {
            LoveChange lc = _uow.LoveChangeService.Get(o => o.Amount == cdvm.DonAmount && o.UnionOrder == cdvm.DonatioinId);

            if (lc != null)
            {
                Session[SessionKey.DonationId]  = cdvm.DonatioinId;
                Session[SessionKey.DonationAmt] = cdvm.DonAmount;
                return(RedirectToAction("DonationPanel"));
            }
            Response.Close();
            Response.End();

            return(null);
        }
Example #2
0
 /// <summary>
 /// Verifies User Login entered by user for drawing
 /// </summary>
 /// <param name="cdvm"></param>
 /// <returns></returns>
 public ActionResult GameLogin(ChariDrawViewModel cdvm)
 {
     if (Request.IsAjaxRequest())
     {
         if (cdvm != null)
         {
             UserInfo usr = _uow.UserInfoService.Get(o => o.UserName == cdvm.UserName);
             if (usr != null && usr.Password == DataEncryption.HashString(cdvm.Password) && usr.UserName == cdvm.UserName)
             {
                 //user logged in successfully
                 Session[SessionKey.User] = usr;
                 return(RedirectToAction("GamePanel"));
             }
         }
     }
     Response.Close();
     Response.End();
     return(null);
 }
Example #3
0
 /// <summary>
 /// Verifies User Login entered by user for drawing
 /// </summary>
 /// <param name="cdvm"></param>
 /// <returns></returns>
 public ActionResult GameLogin(ChariDrawViewModel cdvm)
 {
     if (Request.IsAjaxRequest())
     {
         if (cdvm != null)
         {
             UserInfo usr = _uow.UserInfoService.Get(o => o.UserName == cdvm.UserName);
             if (usr != null && usr.Password == DataEncryption.HashString(cdvm.Password) && usr.UserName == cdvm.UserName)
             {
                 //user logged in successfully
                 Session[SessionKey.User] = usr;
                 return RedirectToAction("GamePanel");
             }
         }
     }
     Response.Close();
     Response.End();
     return null;
 }
Example #4
0
        /// <summary>
        /// Verifies donation order entered by user for drawing
        /// </summary>
        /// <param name="cdvm"></param>
        /// <returns></returns>
        public ActionResult GameVerify(ChariDrawViewModel cdvm)
        {
            LoveChange lc = _uow.LoveChangeService.Get(o => o.Amount == cdvm.DonAmount && o.UnionOrder == cdvm.DonatioinId);

            if (lc != null)
            {
                Session[SessionKey.DonationId] = cdvm.DonatioinId;
                Session[SessionKey.DonationAmt] = cdvm.DonAmount;
                return RedirectToAction("DonationPanel");
            }
            Response.Close();
            Response.End();
            
            return null;
        }