public Task <int> DeleteAsync(IRecipeIngradient entity) { try { return(Repository.DeleteAsync(entity)); } catch (Exception e) { throw e; } }
public virtual Task <int> UpdateAsync(IRecipeIngradient entity) { try { return(Repository.UpdateAsync <RecipeIngradient>(Mapper.Map <RecipeIngradient>(entity))); } catch (Exception e) { throw e; } }