private async Task <IActionResult> CheckUser()
        {
            var error = await userChecker.CheckUserExistence();

            if (error != null)
            {
                return(View("Error", error));
            }
            error = await userChecker.CheckUserBlockStatus();

            if (error != null)
            {
                return(View("Error", error));
            }
            return(null);
        }
Esempio n. 2
0
        private async Task <IActionResult> CheckUser(string ownerUserName)
        {
            var error = await userChecker.CheckUserExistence();

            if (error != null)
            {
                return(View("Error", error));
            }
            error = await userChecker.CheckUserBlockStatus();

            if (error != null)
            {
                return(View("Error", error));
            }
            error = userChecker.CheckUserAccess(ownerUserName);
            if (error != null)
            {
                return(View("Error", error));
            }
            return(null);
        }