public ActionResult <CreateRestaurantType> CreateRestaurantType(CreateRestaurantType model)
        {
            try
            {
                IMapper mapper         = EDeliveryProfile.CreateRestaurantType();
                var     restaurantType = mapper.Map <RestaurantType>(model);

                _repository.CreateRestaurantType(restaurantType);

                return(new ObjectResult(new { message = "success", statusCode = HttpStatusCode.OK, response = "Created new restaurant type" }));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to create new restaurant type:{ex}");
                return(BadRequest("Failed to create new restaurant type: "));
            }
        }