public bool delete(int IdVerbo) { bool result = false; VerboDAO dao = new VerboDAO(); result = dao.delete(IdVerbo); return(result); }
public string getAll() { VerboDAO dao = new VerboDAO(); List <Verbo> lista = dao.getAll(); String strJSON = JsonConvert.SerializeObject(lista, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); return(strJSON); }
public String getVerboByID(int IdVerbo) { VerboDAO dao = new VerboDAO(); Verbo res = dao.getVerboByID(IdVerbo); String strJSON; strJSON = JsonConvert.SerializeObject(res, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); return(strJSON); }
public bool insert(String VerboTraduccion, String VerboPresenteSimple, String VerboPasadoSimple, String VerboPasadoParticipio) { bool result = false; VerboDAO dao = new VerboDAO(); Verbo obj = new Verbo() { VerboTraduccion = VerboTraduccion, VerboPresenteSimple = VerboPresenteSimple, VerboPasadoSimple = VerboPasadoSimple, VerboPasadoParticipio = VerboPasadoParticipio }; result = dao.insert(obj); return(result); }
public bool update(int IdVerbo, String VerboTraduccion, String VerboPresenteSimple, String VerboPasadoSimple, String VerboPasadoParticipio) { bool result = false; VerboDAO dao = new VerboDAO(); Verbo obj = new Verbo() { IdVerbo = IdVerbo, VerboTraduccion = VerboTraduccion, VerboPresenteSimple = VerboPresenteSimple, VerboPasadoSimple = VerboPasadoSimple, VerboPasadoParticipio = VerboPasadoParticipio }; result = dao.update(obj); return(result); }