Ejemplo n.º 1
0
        public ActionResult Edit(string Id)
        {
            ProudctCatgory proudctCatgory = context.Find(Id);

            if (proudctCatgory == null)
            {
                return(HttpNotFound());
            }
            else
            {
                return(View(proudctCatgory));
            }
        }
Ejemplo n.º 2
0
        public ActionResult Edit(string Id)
        {
            Proudct proudct = context.Find(Id);

            if (proudct == null)
            {
                return(HttpNotFound());
            }
            else
            {
                ProudctManagerViewModel viewModel = new ProudctManagerViewModel();
                viewModel.proudct          = proudct;
                viewModel.proudctCatgories = proudctCatgories.Collection();

                return(View(viewModel));
            }
        }