Example #1
0
        // GET /api/locationapi/GetAllProvinces
        public HttpResponseMessage GetAllProvinces()
        {
            HttpResponseMessage response;

            var list = _locationServices.GetAllProvinces().Select(x => new { Id = x.Id, Label = x.Label });

            response = Request.CreateResponse(HttpStatusCode.OK, list);

            return(response);
        }