public StateObject GetStateInfoById(string stateId) { StateObject _out = new StateObject(); _out.Id = Convert.ToInt32(stateId); _out.Abrv = SQLAccess.GetAbr(_out.Id); _out.Name = SQLAccess.GetName(_out.Id); return _out; }
public StateObject GetStateInfoById_JSON(string stateId) { StateObject _out = new StateObject(); _out.Id = Convert.ToInt32(stateId); _out.Abrv = SQLAccess.GetAbr(_out.Id); _out.Name = SQLAccess.GetName(_out.Id); _out.StateList = SQLAccess.GetStatesList(); //_out.DataTable = SQLAccess.GetDataTable(); // DataTable not being correctly sent return _out; }