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