Ejemplo n.º 1
0
        public async Task <int> DeleteAsync(JRoleResource entity)
        {
            DbContext.Set <JRoleResource>().Remove(entity);

            return(await CommitChangesAsync());
        }
Ejemplo n.º 2
0
        public async Task <int> AddAsync(JRoleResource entity)
        {
            DbContext.Set <JRoleResource>().Add(entity);

            return(await CommitChangesAsync());
        }