public static List<PDFForm> listForms(FormDBContext db, int? id) { var ids = id.ToString(); var scoreQuery = from f in db.PDFForms where f.clientID == ids select f; return scoreQuery.ToList(); }
public ActionResult GetForms(int? id) { if (id.HasValue) { FormDBContext serviceDB = new FormDBContext(); var tasks = PDFForm.listForms(serviceDB, id); return View(tasks); } else { return RedirectToAction("Index", "Client"); } }