public ActionResult <List <CuisineTypeDTO> > GetAllCuisineTypes()
        {
            try
            {
                var     result = _repository.GetAllCuisineTypes();
                IMapper mapper = EDeliveryProfile.GetCuisineTypeByID();

                return(mapper.Map <List <CuisineTypeDTO> >(result));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to get all cuisine types:{ex}");
                return(BadRequest("Failed to get all cuisine types: "));
            }
        }
        public ActionResult <CuisineTypeDTO> GetCuisineTypeById(int cuisineTypeID)
        {
            try
            {
                var     result = _repository.GetCuisineTypeById(cuisineTypeID);
                IMapper mapper = EDeliveryProfile.GetCuisineTypeByID();

                return(mapper.Map <CuisineTypeDTO>(result));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to get the cuisine type:{ex}");
                return(BadRequest("Failed to get the cuisine type: "));
            }
        }