public IActionResult GetAll() { try { return(Ok(_Business.GetAll())); } catch (Exception ex) { AppLogger.Error(ex.Message, ex); return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status500InternalServerError, ex.Message)); } }