public int OrganisationLoginValidation(GovtListOfVolunteerOrganisation govtListOfVolunteerOrganisation) { string sql = "SELECT OrganistionName From GovtListOfVolunteerOrganisation WHERE GovtLicenseNo= " + govtListOfVolunteerOrganisation.GovtLicenseNo; SqlDataReader reader = this.GetData(sql); if (reader.Read()) { return(1); } return(-1); }
public int GovtLicenseValidation(int govtLicenseNo, string organisationName) { GovtListOfVolunteerOrganisation govtListOfVolunteerOrganisation = new GovtListOfVolunteerOrganisation() { GovtLicenseNo = govtLicenseNo, OrganisationName = organisationName }; //this.organisationDataAccess = new OrganisationDataAccess(); return(organisationDataAccess.OrganisationLoginValidation(govtListOfVolunteerOrganisation)); }