Beispiel #1
0
        public async Task <ActionResult <List <CreateCompra> > > GetCompras()
        {
            var model = await repo.LeerCompras();

            if (model == null)
            {
                return(NotFound());
            }
            //return new string[] { "value1", "value2" };
            return(model);
        }
        public async Task <ActionResult> Leer_Compras()
        {
            var res = await repo.LeerCompras();

            return(View(res));
        }