예제 #1
0
        public IActionResult Add(HttpSession session, AddProductBindingModel model,
                                 HttpResponse response)
        {
            var user = AuthenticationManager.IsAuthenticated(session);

            var service = new MenuService(Data.Data.Context);

            service.AddPizza(model, user);

            this.Redirect(response, "/menu/index");
            return(null);
        }