public async Task <IActionResult> DeleteUser(int userId)
        {
            string role = await _appDbContext.GetRoleByToken(Request.Headers["Authorization"]);

            if (role.ToLower() == "admin")
            {
                _log.LogInfo("Get user for delete.");
                if (!ModelState.IsValid)
                {
                    _log.LogError("Incorrect input");
                    return(BadRequest(ModelState));
                }

                _log.LogInfo("Deleting user.");
                await _appDbContext.DeleteUser(userId);

                _log.LogInfo("Success.");
                return(Ok());
            }

            return(BadRequest(role));
        }