Пример #1
0
        public async Task <IActionResult> GetEmployeesAsync(
            int pageSize               = 10,
            int pageNumber             = 1,
            int?EmployeeId             = null,
            string EmployeeName        = null,
            string IdentityNumber      = null,
            int?OrganizationId         = null,
            int?PassportCountryId      = null,
            int?ProffesionType         = null,
            int?SiteId                 = null,
            int?EmployeeIsNotInSiteId  = null,
            bool isEmployeeEntry       = false,
            bool sortByAuthtorization  = false,
            bool sortByTraining        = false,
            bool sortByWorkPermit      = false,
            bool sortHealthDeclaration = false)
        {
            var response = await HealthService.GetEmployeesAsync(pageSize, pageNumber, EmployeeId, EmployeeName, IdentityNumber, OrganizationId, PassportCountryId, ProffesionType, SiteId, EmployeeIsNotInSiteId, isEmployeeEntry,
                                                                 sortByAuthtorization,
                                                                 sortByTraining,
                                                                 sortByWorkPermit,
                                                                 sortHealthDeclaration);

            // Return as http response
            return(response.ToHttpResponse());
        }