コード例 #1
0
        // 添加
        public ExemplarCommand Create(string wlno)
        {
            Exemplar exemplar = new Exemplar(ExemplarIdentifier.of(wlno));

            repository.Save(exemplar);
            return(new ExemplarCommand(exemplar, repository));
        }
コード例 #2
0
        // 修改
        public ExemplarCommand Edit(string dbid, string newno)
        {
            Exemplar exemplar = GetOne(dbid);

            exemplar.Id = ExemplarIdentifier.of(newno);
            repository.Save(exemplar);
            return(new ExemplarCommand(exemplar, repository));
        }