Пример #1
0
        public async Task <IActionResult> Index()
        {
            var user = await _userManager.FindByNameAsync(User.Identity.Name);

            //var user = Convert.ToInt32(User.Claims.Where(x => x.Type == ClaimTypes.NameIdentifier).FirstOrDefault().Value);
            ViewBag.ReportNumber    = _reportBusiness.GetReportNumberUserId(user.Id);
            ViewBag.TamamlananGorev = _taskBusiness.GetTaskUser(user.Id);
            return(View());
        }