public RestaurantCategory GetRestaurantCategory(int id)
        {
            //Condition.WithExceptionOnFailure<InvalidParameterException>()
            //    .Requires(id, "restaurantCategoryID")
            //    .IsNotNullOrEmpty();

            return(_restaurantCategoryRepository.Get(id));
        }
Esempio n. 2
0
        public RestaurantCategory GetRestaurantCategory(int id)
        {
            Condition.WithExceptionOnFailure <InvalidParameterException>()
            .Requires(_restaurantCategoryRepository, "_restaurantCategoryRepository")
            .IsNotNull();

            return(_restaurantCategoryRepository.Get(id));
        }