public ActionResult Delete(int id, int category_Id) { productAppService.DeleteProduct(id); return(RedirectToAction("GetProductsINCategory", "Category", new { id = category_Id })); }
public async Task <ActionResult> Delete(int id) { await appService.DeleteProduct(id); return(RedirectToAction("Index")); }
public void Remove_Product_Test() { var result = productAppService.DeleteProduct(9); Assert.That(result, Is.EqualTo(true)); }