Ejemplo n.º 1
0
 public ActionResult SetScript(int id)
 {
     try
     {
         _LoggingService.Write("ExecutionController (SetScript) page access", true);
         _ExecutionRepository.SetScript(_ExecutionRepository.GetCurrent(), id);
         return(RedirectToAction("Index", "Home"));
     }
     catch (Exception ex)
     {
         _LoggingService.WriteWithInner(ex, true, "ExecutionController(SetScript) error: ");
         return(new HttpNotFoundResult());
     }
 }
Ejemplo n.º 2
0
 public void SetScript()
 {
     myExecutionRepository.SetScript(myExecutionRepository.GetCurrent(), 8);
     Assert.IsTrue(true);
 }