Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 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");
     }
 }