public ActionResult Checkout(DateTime date) { try { _cartProvider.Checkout(date); } catch (Exception ex) { Response.StatusCode = 400; return(View("SmallError", (object)ex.Message)); } return(RedirectToAction("Index", "Home")); }