Example #1
0
        public async Task <bool> RemoveAsync(Expression <Func <MenuInfo, bool> > express)
        {
            var spec = Specification <MenuInfo> .Eval(express);

            return(menuManage.RemoveAt(spec) ? await context.SaveChangesAsync() > 0 : false);
        }
Example #2
0
 public bool RemoveAt(ISpecification <Menu> ispec)
 {
     return(iManage.RemoveAt(ispec));
 }