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

EditRuntime() public method

Edits the runtime.
public EditRuntime ( int orginalruntimeid, int hour, int min, int sek, int msek ) : System.Web.Mvc.ActionResult
orginalruntimeid int The orginalruntimeid.
hour int Hours.
min int Minutes.
sek int Seconds.
msek int Milliseconds.
return System.Web.Mvc.ActionResult
        public ActionResult EditRuntime(int orginalruntimeid, int hour, int min, int sek, int msek)
        {
            TimerModel timer = (TimerModel)Session["timer"];
            timer.EditRuntime(orginalruntimeid, hour, min, sek, msek);
            var runtime = RuntimeModel.getById(orginalruntimeid);
            TimeMergerModel.Merge(runtime.CheckPointId);
            return Content(SaveToSessionAndReturnRuntimes(timer));
        }