Ejemplo n.º 1
0
        public async Task <IActionResult> GetAllNewCompany([FromQuery] PageableParam param)
        {
            var result = await _companyService.GetAllNewCompany(param.PageNumber, param.PageSize);

            if (result.Success)
            {
                return(Ok(result));
            }

            return(NoContent());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GetAllMigrationCompany([FromQuery] PageableParam param)
        {
            var result = await _companyService.GetAllMigrationsCompany(param.PageNumber, param.PageSize);

            return(!result.Success ? StatusCode(204, result) : Ok(result));
        }