public ActionResult Edit(string Id) { ProudctCatgory proudctCatgory = context.Find(Id); if (proudctCatgory == null) { return(HttpNotFound()); } else { return(View(proudctCatgory)); } }
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)); } }