Beispiel #1
0
        [HttpGet("get vacancies by company id")] // READ
        public ActionResult <List <GetVacancyWithoutCompanyId> > GetVacanciesByCompanyId(int companyId)
        {
            var listOfAllVacanciesByCompanyId    = _vacancyService.GetVacanciesByCompanyId(companyId);
            var listOfAllVacanciesByCompanyIdDTO = _mapper.Map <List <GetVacancyWithoutCompanyId> >(listOfAllVacanciesByCompanyId);

            return(Ok(listOfAllVacanciesByCompanyIdDTO));
        }
Beispiel #2
0
 public IActionResult GetCreatedVacanciesByUserId(int companyId, string searchString = "")
 {
     return(Ok(_vacancyService.GetVacanciesByCompanyId(companyId, searchString)));
 }