public IActionResult Get(int?pageIndex, int pageSize) { return(Response(_restaurantAppService.GetAll(pageIndex, pageSize))); }
public IActionResult GetAll() { return(ResponseOk(_restaurantAppService.GetAll())); }
public Task <HttpResponseMessage> GetAll() { var restaurant = _service.GetAll(); return(CreateResponse(HttpStatusCode.OK, restaurant)); }
public IEnumerable <RestaurantViewModel> GetAll() { return(_restaurantAppService.GetAll()); }
public async Task <IActionResult> Get() { return(Response(await _restaurantAppService.GetAll())); }