using Fab2ApprovalSystem.DMO;
using Fab2ApprovalSystem.Models;
using Kendo.Mvc.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Kendo.Mvc.Extensions;

 

namespace Fab2ApprovalSystem.Controllers
{
    public class WorkflowController : Controller
    {
        //
       
        //
        // GET: /Workflow/Details/5
        public ActionResult Details(int id)
        {
            return View();
        }

        //
        // GET: /Workflow/Create
        public ActionResult Create()
        {
            return View();
        }

        //
        // POST: /Workflow/Create
        [HttpPost]
        public ActionResult Create(FormCollection collection)
        {
            try
            {
                // TODO: Add insert logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }

        //
        // GET: /Workflow/Edit/5
        public ActionResult Edit(int id)
        {
            return View();
        }

        //
        // POST: /Workflow/Edit/5
        [HttpPost]
        public ActionResult Edit(int id, FormCollection collection)
        {
            try
            {
                // TODO: Add update logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }

        //
        // GET: /Workflow/Delete/5
        public ActionResult Delete(int id)
        {
            return View();
        }

        //
        // POST: /Workflow/Delete/5
        [HttpPost]
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                // TODO: Add delete logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }

    }
}