コード例 #1
0
 public IActionResult Get(int?pageIndex, int pageSize)
 {
     return(Response(_restaurantAppService.GetAll(pageIndex, pageSize)));
 }
コード例 #2
0
 public IActionResult GetAll()
 {
     return(ResponseOk(_restaurantAppService.GetAll()));
 }
コード例 #3
0
        public Task <HttpResponseMessage> GetAll()
        {
            var restaurant = _service.GetAll();

            return(CreateResponse(HttpStatusCode.OK, restaurant));
        }
コード例 #4
0
 public IEnumerable <RestaurantViewModel> GetAll()
 {
     return(_restaurantAppService.GetAll());
 }
コード例 #5
0
 public async Task <IActionResult> Get()
 {
     return(Response(await _restaurantAppService.GetAll()));
 }