예제 #1
0
 public ActionResult New(Driver driver)
 {
     try {
         driver.LastAssignment = "";
         new DriverRepository().Push(driver);
         return RedirectToAction("Index");
     } catch {
         return View();
     }
 }
예제 #2
0
 public void Push(Driver driver)
 {
     redisTypedClient.Lists[KEY].Push(driver);
     ((RedisClient)redisTypedClient.RedisClient).Quit();
 }