コード例 #1
0
        public async Task <IActionResult> UserYear()
        {
            var user = _userManager.GetUserName(User);
            var x    = await _userManager.FindByNameAsync(user);

            var sal = _userProfile.GetIdByEmail(x.Email);

            if (sal != 0)
            {
                var usersal = await _salary.GetUserYear(sal);

                if (usersal != null)
                {
                    return(View(usersal));
                }
            }



            return(RedirectToAction("UserError", "UserProfile"));
        }