public ResponseCollectionModel <StateCity> GetCity() { var result = new ResponseCollectionModel <StateCity>(); if (InMemoryStorage.Instance.CityStorage.Count > 0) { result.Response = InMemoryStorage.Instance.CityStorage.Values.ToList(); } else { var data = instance.GetCity(); result.Response = DataAccessUtility.ConvertToList <StateCity>(data); } result.Status = Constants.WebApiStatusOk; return(result); }