Exemplo n.º 1
0
        public IActionResult Index()
        {
            var id          = User.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier).Value;
            var currentUser = _traderStore.GetAll().FirstOrDefault(u => u.TraderId == Guid.Parse(id));

            var getAnalysis = _analysisService.GetAllAnalysis(currentUser.TraderId);

            var analysis = new AnalysisViewModel
            {
                FormData = getAnalysis
            };

            return(View(analysis));
        }