createIngredient

open suspend override fun createIngredient(ingredient: Ingredient): WarehouseServiceResponse<Ingredient>

Return

null and WarehouseMessage.ERROR_WRONG_PARAMETERS if the quantity passed in the body is less ore equal to 0, otherwise it returns the repository response

Parameters

ingredient

to create