public ActionResult <List <RestaurantTypeDTO> > GetRestaurantTypes()
 {
     try
     {
         var     result = _repository.GetRestaurantTypes();
         IMapper mapper = EDeliveryProfile.GetRestaurantType();
         return(mapper.Map <List <RestaurantTypeDTO> >(result));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Failed to get all Restaurant types:{ex}");
         return(BadRequest("Failed to get all Restaurant types"));
     }
 }