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

            catch (Exception e)
            {
                throw e;
            }
        }