Ejemplo n.º 1
0
        /// <summary>
        /// Delete the ingredient.
        /// </summary>
        /// <param name="id">Id of the ingredient to remove.</param>
        public static void Delete(ObjectId id)
        {
            MongoManager.DeleteItem <Ingredients>(id);

            log.Information($"Deleted ingredient {id}.");
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Delete the recipe.
        /// </summary>
        /// <param name="id">Recipe's id.</param>
        public static void Delete(ObjectId id)
        {
            MongoManager.DeleteItem <Recipes>(id);

            log.Information($"Deleted recipe {id}.");
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Delete a week.
 /// </summary>
 /// <param name="id">Week's id.</param>
 public static void Delete(ObjectId id) => MongoManager.DeleteItem <Weeks>(id);
Ejemplo n.º 4
0
        /// <summary>
        /// Delete the ingredient.
        /// </summary>
        /// <param name="ingredientId">Id of the ingredient.</param>
        public static void Delete(ObjectId ingredientId)
        {
            MongoManager.DeleteItem <IngredientPrices>(x => x.IngredientId == ingredientId);

            log.Information($"Deleted ingredientPrices linked to ingredientId {ingredientId}.");
        }