public bool Insert(string WardCode, string WardDescription, int WardTypeId, int WardForId, int BedsNumber, int WardCapacity, int RoomsNumber, string WardPhone, string WardColor, int WardOrder) { WardsDAC wardsComponent = new WardsDAC(); int WardId = 0; return(wardsComponent.InsertNewWards(ref WardId, WardCode, WardDescription, WardTypeId, WardForId, BedsNumber, WardCapacity, RoomsNumber, WardPhone, WardColor, WardOrder)); }
public bool Insert(Wards wards) { int autonumber = 0; WardsDAC wardsComponent = new WardsDAC(); bool endedSuccessfuly = wardsComponent.InsertNewWards(ref autonumber, wards.WardCode, wards.WardDescription, wards.WardTypeId, wards.WardForId, wards.BedsNumber, wards.WardCapacity, wards.RoomsNumber, wards.WardPhone, wards.WardColor, wards.WardOrder); if (endedSuccessfuly) { wards.WardId = autonumber; } return(endedSuccessfuly); }