Beispiel #1
0
        public async Task <bool> DeleteAsync(int id)
        {
            var x = await FindByIdAsync(id);

            if (x == null)
            {
                return(false);
            }
            ctx.Set <T>().Remove(x);
            return(true);
        }
 public IEnumerable <T> FindAll()
 {
     return(ctx.Set <T>());
 }