public async Task <IHttpActionResult> GetLocalities(bool refresh = false) { if (refresh) { await _service.RefreshLocalities(); } var localities = _service.Collection.AsQueryable(); var result = await localities.ToOdataResponse(Request, AppConstants.DefaultApiRoute); return(Ok(result)); }
public async Task <IHttpActionResult> RefreshLocalities() { await localLityService.RefreshLocalities(); return(Ok()); }