Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- public ActionResult Search (string[] jsonString)
- {
- IQueryable <UploadedFile> res = Context.UploadedFiles;
- if (!string.IsNullOrEmpty(jsonString[0]))
- {
- res = res.Where(x => x.FileTitle.Contains(jsonString[0]));
- }
- return View("UploadFilesView", res.ToList());
- }
- res = res.Where(x => x.FileTitle.Contains(jsonString[0]));
- var buffer = jsonString[0];
- res = res.Where(x => x.FileTitle.Contains(buffer));
Add Comment
Please, Sign In to add comment