コード例 #1
0
        public Vm GetDetail(string id)
        {
            var model = Repository.GetById(id);

            if (model == null)
            {
                return(null);
            }
            return(new Vm(model));
        }
コード例 #2
0
        public async Task <List <Vm> > SearchAsync(Rm request)
        {
            var list = await request.GetOrderedData(Repository.Get()).Include("Fee").ToListAsync();

            return(list.ConvertAll(x => new Vm(x)));
        }
コード例 #3
0
 public CollectionDetailService(Repository repository) : base(repository)
 {
     this.repository = repository;
 }