Beispiel #1
0
        /// <summary>
        /// Get Ingredient By IF
        /// </summary>
        /// <param name="id"></param>
        /// <returns>Ingredients </returns>
        public async Task <Ingredients> GetIngredientById(int id)
        {
            IIngredientRepository _ingredient = _db.GetRepository <IIngredientRepository>();

            return(await _ingredient.GetAsync(id));
        }
Beispiel #2
0
 public async Task <Ingredient> GetIngredientAsync(int id)
 {
     return(await _ingredientRepository.GetAsync(id));
 }
 public virtual async Task <IEnumerable <IngredientCommandResult> > GetAsync()
 {
     return(await _repository.GetAsync());
 }