public ActionResult Delete(Guid id) { if (!obraService.GetObraAny(id)) { obraService.Delete(id); return(Json(new { data = true }, JsonRequestBehavior.AllowGet)); } return(Json(new { data = false }, JsonRequestBehavior.AllowGet)); }
public bool EliminarObra(int id) { return(_obraService.Delete(id)); }