//POST: DELETE PRODUCT //ONLY ADMIN AND VENDOR IS AUTHORISED public ActionResult Delete(int id) { bool status = productActionContext.DeleteProduct(id); if (!status) { TempData["Deleted"] = false; } TempData["Deleted"] = true; return(RedirectToAction("RedirectTo", "Account")); }
public bool Delete(Guid id) { return(product_actions.DeleteProduct(id)); }