Ejemplo n.º 1
0
    public async Task <IActionResult> GetInfoAsync()
    {
        Statuses statuses = null;

        try
        {
            statuses = await BusinessComponent.GetInfo();
        }
        catch (System.Exception ex)
        {
            return(BadRequest($"Exception occurred while trying to get health informations."));
        }
        return(Ok(statuses));
    }