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()); }
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()); }