public async Task <IActionResult> Register(RegisterModel model)
        {
            if (ModelState.IsValid)
            {
                LoginResponse res = await AuthenticationLogic.Register(userManager, signInManager, model);

                if (res.success)
                {
                    return(Ok(res));
                }
                else
                {
                    return(Unauthorized());
                }
            }
            else
            {
                return(BadRequest("Invalid Login Model"));
            }
        }