Пример #1
0
        public SnackData GetSnackWithData(Guid id)
        {
            using (_context)
            {
                var snack = _snackRepository.GetSnackWithData(id);

                return(_mapper.Map <SnackData>(snack));
            }
        }