Пример #1
0
        public ResponseViewModel GetVisitorModel(string name)
        {
            var result = _visitorRepository.CheckIfVisitorIsSaved(name);

            if (result)
            {
                return(_viewModelBuilder.BuildOldVisitorViewModel(name));
            }
            _visitorRepository.SaveVisitor(name);
            return(_viewModelBuilder.BuildNewVisitorViewModel(name));
        }