public async Task <ActionResult <Point> > Create(PointDto point) { bool validLimit = _pointService.ValidateLimit(await _pointRepository.GetAll()); bool isDublicate = _pointService.IsDublicate(await _pointRepository.GetAll(), point); if (validLimit && !isDublicate) { return(await _pointRepository.Add(point)); } return(null); }