public RedirectResult Create(TriggerDeviceAction deviceAction)
 {
     if (Repository.Get(deviceAction.Id) != null)
     {
         var update = Repository.Get(deviceAction.Id);
         update.CopyDataFrom(deviceAction);
         Repository.Put(update.Id, update);
         return(Redirect("/?dayOfWeek=100"));
     }
     Repository.Post(deviceAction);
     return(Redirect("/?dayOfWeek=100"));
 }