public async Task <ActionResult> GetAllAsync(string name, int page = 1, int pageSize = ServicesConstants.DefaultPageSize)
        {
            // TODO: Add documentation
            var companies = new CompanyListingViewModel
            {
                Companies = await companyService.GetAllAsync(name, page, pageSize),
                Total     = await companyService.GetTotalAsync(name),
                Page      = page
            };

            return(Ok(companies));
        }
Exemplo n.º 2
0
 private bool CompareCompaniesWithMemeListingServiceModelExact(CompanyListingViewModel thisCompany, Company otherCompany)
 => thisCompany.Id == otherCompany.Id &&
 thisCompany.Name == otherCompany.Name &&
 thisCompany.Description == otherCompany.Description &&
 thisCompany.Headquarters == otherCompany.Headquarters;