public static OccasionMasterEntity[] EditData(int id)
        {
            var details = new List <OccasionMasterEntity>();

            try
            {
                details = new OccasionMasterDAO().EditOccasion(id);
            }
            catch (Exception ex)
            {
                //details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
        public static OccasionMasterEntity[] GetData() //Show the details of the data after insert in HTML Table
        {
            var details = new List <OccasionMasterEntity>();

            try
            {
                details = new OccasionMasterDAO().GetOccasionList();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }