public async Task <IActionResult> GetEmailAccountIdDefault(int id) { var Response = new SingleResponse <EmailAccount>(); try { Response.Model = await _IEmailAccountRepository.GetEmailAccountByIdDefaultAsync(id); Response.Message = $"Querying EmailAccount with the id: {id} with default information."; _Logger.LogInfo(ControllerContext, Response.Message); } catch (Exception ex) { Response.DidError = true; Response.Message = "Internal Server Error."; _Logger.LogError(ControllerContext, $"Error Message: {ex.Message}"); } return(Response.ToHttpResponse()); }