public IEnumerable <dynamic> GetJobTypes([FromBody] GetJobTypesModel model) { var res = _positionRepo.GetJobTypes(model.destinations, model.sourceMarkets); return(res.Select(jobTitle => new { Value = jobTitle, Label = jobTitle }).ToList()); }
public IEnumerable <dynamic> GetJobTypes([FromBody] GetJobTypesModel model) { var res = _positionRepo.GetJobTypes(model.destinations, model.sourceMarkets); return(res.Select(jobTitle => new { Value = jobTitle, Label = jobTitle }).ToList()); }