Exemple #1
0
        public async Task <IWrappedResponse> GetByIdAction(Rules.Vouchers.GetById.MainRule rule)
        {
            var voucher    = rule.Context.Voucher;
            var voucherDto = Mapper.Map <Voucher>(voucher);

            return(Ok(voucherDto));
        }
 public ContextModel(int parent, MainRule rule) : base(parent, rule)
 {
 }