コード例 #1
0
        public ActionResult Index()
        {
            ActionResult response = null;

            try
            {
                List <PizzaPO> prefabPizzas =
                    Mapping
                    .PizzaMapper
                    .PizzaDOListToPizzaPOList(_pizzaDAO.GetAllPrefabPizzas());

                response = View(GeneratePizzaMatrix(prefabPizzas));
            }
            catch (Exception exception)
            {
                Logger.LogExceptionNoRepeats(exception);
            }
            finally
            {
                if (response == null)
                {
                    response = RedirectToAction("Index", "Home");
                }
            }

            return(response);
        }