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