Exemple #1
0
        public static CityStateMasterEntity[] EditData(int id)
        {
            var details = new List <CityStateMasterEntity>();

            try
            {
                details = new CityStateMasterDAO().EditCityState(id);
            }
            catch (Exception ex)
            {
                //details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Exemple #2
0
        public static CityStateMasterEntity[] GetData() //Show the details of the data after insert in HTML Table
        {
            var details = new List <CityStateMasterEntity>();

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