HBM.GeneralManagement.RoomRatePlan.Save C# (CSharp) Method

Save() public method

public Save ( ) : bool
return bool
        public bool Save()
        {
            bool result = false;
            try
            {
                if (this.RoomRatePlanId > 0)
                {
                    result = (new RoomRatePlanDAO()).Update(this);
                }
                else
                {
                    result = (new RoomRatePlanDAO()).Insert(this);
                }
            }
            catch (System.Exception ex)
            {
                result = false;
                throw ex;
            }
            return result;
        }