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()); }
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)); }