public bool Insert(string WardCode, string WardDescription, int BedsNumber, int WardCapacity, int RoomsNumber, string WardType, string WardPhone, string WardColor, int WardOrder) { WardDAC wardComponent = new WardDAC(); int WardId = 0; return(wardComponent.InsertNewWard(ref WardId, WardCode, WardDescription, BedsNumber, WardCapacity, RoomsNumber, WardType, WardPhone, WardColor, WardOrder)); }
public bool Insert(Ward ward) { int autonumber = 0; WardDAC wardComponent = new WardDAC(); bool endedSuccessfuly = wardComponent.InsertNewWard(ref autonumber, ward.WardCode, ward.WardDescription, ward.BedsNumber, ward.WardCapacity, ward.RoomsNumber, ward.WardType, ward.WardPhone, ward.WardColor, ward.WardOrder); if (endedSuccessfuly) { ward.WardId = autonumber; } return(endedSuccessfuly); }