Ejemplo n.º 1
0
 public async Task <IActionResult> GetAll(
     [FromQuery] ApiFilter queryFilter
     )
 {
     return(Ok(
                await _originService.GetAllAsync(queryFilter)
                ));
 }
        public async Task <OriginCompleteDto> Get(int from = 0, int size = 20, string custom = "false")
        {
            var originDto = await _originService.GetAllAsync(from, size, custom);

            var originsComplete = new OriginCompleteDto {
                Origins = originDto
            };

            return(originsComplete);
        }