Ejemplo n.º 1
0
 public ActionResult AgentWallet()
 {
     try
     {
         string user = LoggedInuser.LoggedInUser();
         if (user != null)
         {
             int userid  = DataReaders.GetUserIdByEmail(user);
             var Balance = DataReaders.Balance(userid);
             TempData["Balance"] = Balance;
             return(View());
         }
         else
         {
             return(RedirectToAction("Index", "Index"));
         }
     }
     catch (Exception ex)
     {
         WebLog.Log(ex.Message.ToString());
         return(null);
     }
 }