public async Task <ActionResult <CompanyModel[]> > Get()
        {
            try
            {
                var results = await _repository.GetAllCompaniesAsync();

                return(_mapper.Map <CompanyModel[]>(results));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, "Database failure"));
            }
        }