Align .editorconfig files Move Controller logic to DMO classes GlobalVars.AppSettings = Models.AppSettings.GetFromConfigurationManager(); Question EditorConfig Project level editorconfig Format White Spaces AppSetting when EnvironmentVariable not set Corrective Actions Tests Schedule Actions Tests DMO Tests Controller Tests Get ready to use VSCode IDE
81 lines
1.6 KiB
C#
81 lines
1.6 KiB
C#
using Fab2ApprovalSystem.DMO;
|
|
using Fab2ApprovalSystem.Models;
|
|
|
|
using Kendo.Mvc.Extensions;
|
|
using Kendo.Mvc.UI;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
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();
|
|
}
|
|
}
|
|
|
|
} |