Exemplo n.º 1
0
 public async Task <IngredientLogic> Update(int id, IngredientLogic ingredient)
 {
     return(_mapper.Map <IngredientLogic>(await _ingredientRepository.Update(id, _mapper.Map <Ingredient>(ingredient))));
 }
Exemplo n.º 2
0
 public async Task <int> Create(IngredientLogic ingredient)
 {
     return(await _ingredientRepository.Create(_mapper.Map <Ingredient>(ingredient)));
 }
 /// <summary>
 /// Comments here
 /// </summary>
 public IngredientController()
 {
     _ingredientLogic = new IngredientLogic();
 }
Exemplo n.º 4
0
 void OnApplicationQuit()
 {
     igInstance = null;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Ingredient controller constructor - for use with ioc
 /// </summary>
 /// <param name="ingredientLogic"></param>
 public IngredientsController(IngredientLogic ingredientLogic)
 {
     _ingredientLogic = ingredientLogic;
 }