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