/// <summary>
        /// Verify user
        /// </summary>
        /// <param name="userLogin">user's login</param>
        /// <param name="userToVerify">user's id</param>
        /// <returns>identity</returns>
        public async Task <ClaimsIdentity> GetIdentity(string userLogin, int userToVerify)
        {
            var claims = new List <Claim>
            {
                new Claim(ClaimsIdentity.DefaultNameClaimType, userLogin),
                new Claim(ClaimsIdentity.DefaultRoleClaimType, await _appDbContext.GetRole(userToVerify))
            };

            ClaimsIdentity claimsIdentity =
                new ClaimsIdentity(
                    claims,
                    "Token",
                    ClaimsIdentity.DefaultNameClaimType,
                    ClaimsIdentity.DefaultRoleClaimType);

            return(claimsIdentity);
        }