Guest User

Guest User

  • Tech Writer
  • 515
  • 42.5k

Refresh Specific Method in Controller

Oct 24 2019 12:47 PM
Hello,
 
Following is My Controller Home Method.
  1. public ActionResult Home()  
  2. {  
  3. Guid LoginId = new Guid(Session["UserId"].ToString());  
  4. BindSCOBalance(LoginId);  
  5. PopulateViewBag();  
  6. Guid id = Guid.Parse(Session["UserId"].ToString());  
  7. ViewBag.UsersTransactionsHistory = objTransaction.GetUserTransactions(id);  
  8. ViewBag.RemainTransactionsHistory = objTransaction.GetRemainUserTransactions(id);  
  9. ViewBag.UsersTempRedeem = objtempredeem.GettempdreddembyUserId(LoginId);  
  10. ViewBag.LocationList = objLocationMaster.GetLocationsByMerchantId(Guid.Parse(Session["MerchnatId"].ToString()));  
  11. var LocationName = objLocationMaster.GetLocationsByMerchantIdsingle(Guid.Parse(Session["MerchnatId"].ToString()));  
  12. //ViewBag.LocationName = LocationName.StoreName;  
  13. //ViewBag.StoreLogo = LocationName.StoreLogo;  
  14. MerchantMaster merchantdetails = objmerchant.GetById(Guid.Parse(Session["MerchnatId"].ToString()));  
  15. ViewBag.LocationName = merchantdetails.MerchantUser;  
  16. ViewBag.StoreLogo = merchantdetails.UserAvatar;  
  17. ViewBag.Currency = merchantdetails.Currency;  
  18. UserMaster userdetails = objuser.GetById(LoginId);  
  19. return View(userdetails);  
  20. }  
I just want to refresh BindSCOBalance(LoginId) function from it, but don't want to refresh the whole Home Method.
Thanks in advance

Answers (1)