//Incluir um registro public string Insert(Agenda agenda) { StringBuilder erros = new StringBuilder(); if (agenda.DtAgenda == null || agenda.DtAgenda.Equals("")) { erros.AppendLine("A data de agendamento deve ser informado."); } if (erros.Length != 0) { return(erros.ToString()); } string respostaDB = dal.Insert(agenda); return(respostaDB); }