ITimeU.Controllers.TimerController.DeleteRuntime C# (CSharp) Method

DeleteRuntime() public method

Deletes the runtime.
public DeleteRuntime ( int runtimeid ) : System.Web.Mvc.ActionResult
runtimeid int The runtimeid.
return System.Web.Mvc.ActionResult
        public ActionResult DeleteRuntime(int runtimeid)
        {
            TimerModel timer = (TimerModel)Session["timer"];
            var runtime = RuntimeModel.getById(runtimeid);
            timer.DeleteRuntime(runtimeid);
            TimeMergerModel.Merge(runtime.CheckPointId);
            return Content(SaveToSessionAndReturnRuntimes(timer));
        }