Пример #1
0
        public IActionResult RemoteVacancyIsUnique(IEnumerable <int> listCitiesIds, int id, string name)
        {
            var result = _vacancy.GetDuplicates(new Vacancy {
                Id = id, Name = name
            }, listCitiesIds);

            return(Json(result == null || !result.Any()));
        }