//GET: /Product/Delete/5 public ActionResult Delete(int id) { if (_logicaNegocio.Eliminar(id)) { return(RedirectToAction("Index")); } return(View()); }
public IHttpActionResult DeleteProduct(int id) { if (_logicaNegocio.Seleccionar(id) == null) { return(NotFound()); } if (_logicaNegocio.Eliminar(id)) { return(Ok()); } else { return(InternalServerError()); } }