public async Task <bool> ValidateId(Place Place) { PlaceFilter PlaceFilter = new PlaceFilter { Skip = 0, Take = 10, Id = new IdFilter { Equal = Place.Id }, Selects = PlaceSelect.Id }; int count = await UOW.PlaceRepository.Count(PlaceFilter); if (count == 0) { Place.AddError(nameof(PlaceValidator), nameof(Place.Id), ErrorCode.IdNotExisted); } return(count == 1); }