コード例 #1
0
        public UIModel.Listic GetListic(long listicId)
        {
            var record = Find(listicId);

            if (record != null)
            {
                return(ListicFactory.Create(record));
            }

            throw new Exception($"Found no Listic record with ListicId={listicId}");
        }
コード例 #2
0
        public void Add(UIModel.Listic listic)
        {
            var record = ListicFactory.CreateRecord(listic);

            _dataContext.Listics.Add(record);
        }