Пример #1
0
 //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());
            }
        }