예제 #1
0
        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));
        }
예제 #2
0
        public async Task <IHttpActionResult> RefreshLocalities()
        {
            await localLityService.RefreshLocalities();

            return(Ok());
        }