public Mensagens(int id, string titulo, Nullable <DateTime> dtenvio, string identificador, int idcategoria) { this.idmensagem = id; this.titulo = titulo; this.identificador = identificador; this.dtenvio = dtenvio; this.idcategoria = new MensagensDB().BuscaCategoria(idcategoria); }
public Mensagens(int id, string titulo, string texto, string json, string identificador, int idcategoria) { this.idmensagem = id; this.titulo = titulo; this.identificador = identificador; this.texto = texto; this.txjson = json; this.idcategoria = new MensagensDB().BuscaCategoria(idcategoria); }
public Mensagens(int id) { this.idmensagem = id; this.titulo = ""; this.identificador = ""; this.texto = ""; this.txjson = ""; this.dtenvio = null; this.idcategoria = null; }