private void Update()
    {
        if (!base.ValidateIfCommandAllowed(Request.Url.AbsoluteUri, ENums.PageCommand.Update))
        {
            return;
        }

        if (!ValidateValues())
        {
            return;
        }

        bool bActionCompleted;
        AccomodationSeasonDTO accomodationOldSeason = GetSeasonOldDates();
        AccomodationSeasonDTO accomodationNewSeason = MapControlsToObject();

        AccomodationMaster oAccomMaster = new AccomodationMaster();

        bActionCompleted = oAccomMaster.UpdateAccomodationSeason(accomodationOldSeason, accomodationNewSeason);
        if (bActionCompleted == true)
        {
            base.DisplayAlert("The record has been updated successfully");
            ClearControls();
            lblStatus.Text = "Updated Successfully";
        }
        else
        {
            lblStatus.Text = "Error Occured while updating: Please refer to the error log.";
        }

        RefreshGrid();
        accomodationOldSeason = null;
        accomodationNewSeason = null;
        oAccomMaster          = null;
    }