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); }
public bool RemoveAt(ISpecification <Menu> ispec) { return(iManage.RemoveAt(ispec)); }