Пример #1
0
        // GET api/forms
        public List <Form> Get()
        {
            FormDataAdapter adapter = new FormDataAdapter();
            List <Form>     Forms   = adapter.GetForms(User);

            return(Forms);
        }
Пример #2
0
        //
        // GET: /Maintenance/
        public ActionResult Index()
        {
            FormDataAdapter adapter = new FormDataAdapter();
            List <Form>     Forms   = adapter.GetForms(TemplateID: 3, User: User);

            return(View(Forms));
        }
Пример #3
0
        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));
            }
        }