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}"); }
public void Add(UIModel.Listic listic) { var record = ListicFactory.CreateRecord(listic); _dataContext.Listics.Add(record); }