// GET api/forms public List <Form> Get() { FormDataAdapter adapter = new FormDataAdapter(); List <Form> Forms = adapter.GetForms(User); return(Forms); }
// // GET: /Maintenance/ public ActionResult Index() { FormDataAdapter adapter = new FormDataAdapter(); List <Form> Forms = adapter.GetForms(TemplateID: 3, User: User); return(View(Forms)); }
public ActionResult Index() { FormDataAdapter adapter = new FormDataAdapter(); List <Form> Forms; try { Forms = adapter.GetForms(User); return(View(Forms)); } catch (Exception ex) { ViewBag.Error = "Error in Index: " + ex.Message; return(View((object)null)); } }