Exemple #1
0
        public IActionResult CheckUserAccount(string userEmail)
        {
            try
            {
                var accountExists = _account.CheckIfUserExists(userEmail);

                if (accountExists)
                {
                    return(Ok());
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }