public async Task <ActionResult> Post([FromBody] LoginRequestViewModel model)
        {
            if (string.IsNullOrWhiteSpace(model.Username) || string.IsNullOrWhiteSpace(model.Password))
            {
                return(new UnauthorizedResult());
            }

            HRUser user = await _userManager.FindByNameAsync(model.Username);

            if (user != null)
            {
                SignInResult result = await _signInManager.CheckPasswordSignInAsync(user, model.Password, false);

                if (result.Succeeded)
                {
                    //await _signInManager.SignInAsync(user,false);

                    await _hrServices.SendTwoFactorCodeAsync(user);

                    return(new OkResult());
                }
            }
            return(new UnauthorizedResult());
        }