Esempio n. 1
0
        public async Task <IActionResult> CheckAccount(int PlatformId, int EmailAccountId)
        {
            var Response = new SingleResponse <object>();

            try
            {
                var AccountsPlatformsList = await _IAccountRepository.AccountsAndPlatforms();

                Response.Model = AccountsPlatformsList;
            }
            catch (Exception ex)
            {
                Response.DidError = true;
                Response.Message  = "Internal Server Error.";
                _Logger.LogError(ControllerContext, $"Error Message: {ex.Message}");
            }
            return(Response.ToHttpResponse());
        }