SHARE
TWEET

Untitled

a guest Jun 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var allrows = db.works.Where(x => x.Status == 100).OrderByDescending(x => x.ID_Work).ToPagedList(pageNumber, pageSize);
  2.      
  3. var allrows = db.works.Where(x => x.Status == 100);
  4.      if(!String.IsNullOrEmpty(Code_Work))
  5.       {
  6.        allrows= allrows.Where(x => x.Code_Work.Contains(Code_Work));
  7.        ViewBag.CurrentCode_Work = Code_Work;
  8.       }
  9. var pagedrows = allrows.OrderByDescending(x => x.ID_Work).ToPagedList(pageNumber, pageSize);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top