public IEnumerable <object> GetLookup(LookupTypeCode lookup, params object[] param) { switch (lookup) { case LookupTypeCode.GetCitiesByRegion: ; //return _conn.GetAllWithChildren<CityModel>().Where(o => o.LinkID == Convert.ToInt16(param[0])).ToList(); break; } return(null); }
public ResultObj <object> SaveLookup(String jsonData, LookupTypeCode code) { ResultObj <object> result = new ResultObj <object>(); if (jsonData != string.Empty) { try { result.isSuccessful = true; result.Error = string.Empty; } catch (Exception ex) { result.isSuccessful = false; result.Error = ex.Message; } } return(result); }