public bool Insert(string SpecialityCode, string SpecialityName, string SpecialityAbbreviation) { SpecialityDAC specialityComponent = new SpecialityDAC(); int SpecialityId = 0; return(specialityComponent.InsertNewSpeciality(ref SpecialityId, SpecialityCode, SpecialityName, SpecialityAbbreviation)); }
public bool Insert(string SpecialityCode, string SpecialityName, string BedDisplayCode) { SpecialityDAC specialityComponent = new SpecialityDAC(); int SpecialityId = 0; return(specialityComponent.InsertNewSpeciality(ref SpecialityId, SpecialityCode, SpecialityName, BedDisplayCode)); }
public bool Insert(Speciality speciality) { int autonumber = 0; SpecialityDAC specialityComponent = new SpecialityDAC(); bool endedSuccessfuly = specialityComponent.InsertNewSpeciality(ref autonumber, speciality.SpecialityCode, speciality.SpecialityName, speciality.SpecialityAbbreviation); if (endedSuccessfuly) { speciality.SpecialityId = autonumber; } return(endedSuccessfuly); }