public ActionResult Edit(int id) { ProductViewModel product = productAppService.GetProductByID(id); ViewBag.Categroies = categroyAppService.GetAllCategroy(); return(View(product)); }
public void Get_Product_ById_Test() { var result = productAppService.GetProductByID(2); Assert.That(result.Name, Is.EqualTo("Dell 500")); }