public JsonResult GetStores(string pid) { dynamic stores = from s in _storesRepository.GetNearestStores(pid) where s != null select s.GetViewModel(); JsonResult baseJsonResult = this.Json(stores); return(Json(baseJsonResult)); }