Example #1
0
        public async Task <bool> Delete(TEntity entity)
        {
            Context.Remove(entity);
            try
            {
                await Context.SaveChangesAsync();

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }