Created
September 13, 2016 20:32
-
-
Save klmlfl/c8f6ae99ce92a1bdf8f16db90db13187 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
using System.Xml; | |
using Microsoft.Office.Interop.Outlook; | |
using OutlookApp = Microsoft.Office.Interop.Outlook.Application; | |
using System.IO; | |
using System.Text; | |
namespace WebEggplant.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
ViewBag.Message = "Smoke Test Web Controller"; | |
return View(); | |
} | |
public ActionResult Reports() | |
{ | |
ViewBag.Message = "Test Results"; | |
return View(); | |
} | |
// [HttpPost] | |
public ActionResult Index2() | |
{ | |
try | |
{ | |
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"C:\Users\srahman\Documents\Visual Studio 2013\Projects\WebEggplant\env_setup_teardown\bin\Debug\env_setup_teardown.exe"); | |
System.Diagnostics.Process.Start(psi); | |
ViewBag.Result = "Done"; | |
} | |
catch (System.Exception ex) | |
{ | |
ViewBag.Error = ex.Message; | |
} | |
return View(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment