public Response Post([FromBody] AddCompaniesRequest requestModel) { List <Company> companiesToAdd = requestModel.companies; if (companiesToAdd.Count == 0) { throw new MalformedRequestException("Expected at least one <company> tag"); } log.Info("Adding companies: " + companiesToAdd); companyRepository.AddCompanies(companiesToAdd); log.Debug("Companies added successfully"); return(new Response() { Success = true }); }