Пример #1
0
 public JsonResult ListarVenta10()
 {
     return(Json(
                VentaBL.Listar(orderBy: x => x.OrderByDescending(y => y.Id)
                               , includeProperties: "Persona").Take(25)
                .Select(x => new
     {
         x.Id,
         x.Fecha,
         x.Serie,
         x.Numero,
         x.Total,
         Cliente = x.Persona != null ? x.Persona.NombreCompleto : "",
         x.Estado
     }).ToList()
                , JsonRequestBehavior.AllowGet));
 }