Exemplo n.º 1
0
 protected override object Run(ConceptosGet request)
 {
     return(new ConceptosGetResponse()
     {
         Conceptos = DbFactory.Conceptos(),
         Success = true
     });
 }
Exemplo n.º 2
0
        protected override object Run(ConceptosCajaGet request)
        {
            var conceptos = DbFactory.Conceptos();

            return(new ConceptosCajaGetResponse()
            {
                Success = true,
                Egresos = conceptos.Where(r => r.Factor == -1).ToList(),
                Ingresos = conceptos.Where(r => r.Factor == 1).ToList()
            });
        }