public IActionResult Index() { var viewModel = new PedidosClienteIndexViewModel() { Pedidos = Mapper.Map <List <PedidoClienteViewModel> >(_pedidos.GetByClientId(ClientId)) }; return(View(viewModel)); }
public IActionResult Index() { if (ClientId != 0) { var viewModelCliente = Mapper.Map <List <DashboardPedidoViewModel> >(_pedidos.GetByClientId(ClientId).Where(x => x.Delivery && x.Estado != Core.Constants.EstadoPedido.EntregadoPorDelivery).OrderBy(x => x.FechaEntrega)); return(View("~/Areas/Platform/Views/Dashboard/DashboardCliente.cshtml", viewModelCliente)); } var viewModelUser = _reportes.GetDashboardData(SucursalId); return(View("~/Areas/Platform/Views/Dashboard/DashboardUser.cshtml", viewModelUser)); }