public IActionResult BuyAction(string actionCode, int actionUnit, decimal actionPrice) { if (User.Identity.IsAuthenticated) { var userID = _userManager.GetUserId(User); _transactionServices.BuyAction(actionCode, actionUnit, actionPrice, userID); } return(RedirectToAction("Index", "Home")); }