public Vm GetDetail(string id) { var model = Repository.GetById(id); if (model == null) { return(null); } return(new Vm(model)); }
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))); }
public CollectionDetailService(Repository repository) : base(repository) { this.repository = repository; }