public virtual Task <int> InsertAsync(IAlergen entity) { try { return(Repository.InsertAsync <Alergen>(Mapper.Map <Alergen>(entity))); } catch (Exception e) { throw e; } }
public async Task <int> DeleteAsync(IAlergen entity) { try { return(await Repository.DeleteAsync(entity)); } catch (Exception e) { throw e; } }