public IActionResult GetAllTrainings()
        {
            string message = string.Empty;

            try
            {
                var results = IAccess.GetAllTrainings();
                return(StatusCode(StatusCodes.Status200OK, results));
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, new { message = ex.Message }));
            }
        }
 public IEnumerable <Training> GetAllTrainings()
 {
     return(IAccess.GetAllTrainings());
 }