public ActionResult Get( [FromQuery] FilterViewModel filter = null, [FromQuery] OrderByViewModel order = null, [FromQuery] PaginationViewModel pagination = null) { return(Ok(_employeeAppService.GetAll(filter, order, pagination))); }
public PagedViewModel GetAll(FilterViewModel filter = null, OrderByViewModel order = null, PaginationViewModel pagination = null) { var employees = _employeeRepository.GetAllCustom( _mapper.Map <FilterDto>(filter), _mapper.Map <OrderByDto>(order), _mapper.Map <PaginationDto>(pagination) ); return(_mapper.Map <PagedViewModel>(employees)); }