Beispiel #1
0
        public ActionResult Initial(string currentTime)
        {
            long     test  = long.Parse(currentTime);
            DateTime start = test.FromUnixTimeToUtc();

            activityRepo.CreateOrUpdate(new Activity {
                Name = "on the internet", Description = "Being productive?", Color = "#0066cc", Start = start
            });
            ModelState.Clear();
            return(RedirectToAction("Index"));
        }