public ActionResult ViewOrder(string StartDate, string EndDate)
        {
            ViewOrdersViewModel model = new ViewOrdersViewModel();

            if (!string.IsNullOrEmpty(StartDate) && !string.IsNullOrEmpty(EndDate))
            {
                model.OrderList = ViewOrdersModel.GetOrdersView(StartDate, EndDate);
            }
            if (model.OrderList != null && model.OrderList.Any())
            {
                return(View(model));
            }
            return(View(model));
        }
 public ActionResult ViewOrder(ViewOrdersViewModel view)
 {
     view.OrderList = ViewOrdersModel.GetOrdersView(view.StartDate, view.EndDate);
     return(View(view));
 }