Пример #1
0
        public int Create(PhotoGroupCreateModel model)
        {
            Guard.NotNull(model, nameof(model), Constants.NullExceptionGenerator);

            _logger.LogInformation($"new photo group: {JsonConvert.SerializeObject(model)}");

            var entity = Mapper.Map <PhotoGroup>(model);

            return(_photoGroupRepository.Create(entity));
        }