public async Task <ActionResult> AddUser([FromBody] RegisterViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var user = new ApplicationUser
            {
                Email         = viewModel.Email,
                UserName      = viewModel.Email,
                SecurityStamp = Guid.NewGuid().ToString()
            };
            var result = await _userManager.CreateAsync(user, viewModel.Password);

            if (result.Succeeded)
            {
                var userModel = new UserModel(_steppeContext);
                await userModel.AddUserClaimsAsync(_userManager, user, viewModel);

                await userModel.AddRoleToUserAsync(_userManager, user, UserModel.GetIdentityUserRoleByUserType(viewModel.Type));
            }

            return(Ok(new { user.UserName }));
        }