public JsonResult GetAll() { try { return(Json(db.ListarConsulta(), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex.Message, JsonRequestBehavior.AllowGet)); } }
public JsonResult GetAll() { try { return(Json(db.ListarConsulta(), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex.Message, JsonRequestBehavior.AllowGet)); } }