public ActionResult ProductReport()
        {
            var dailySoldProduts     = serviceManager.GetDailySoldProducts();
            var weeklySoldProduts    = serviceManager.GetWeeklySoldProducts();
            DailyWeeklyProduct model = new DailyWeeklyProduct {
                daily = dailySoldProduts, weekly = weeklySoldProduts
            };

            return(View(model));
        }
        public ActionResult ProductReportForStaff()
        {
            string staffID = this.Request.Params["sId"];

            if (staffID != null)
            {
                var dailySoldProduts     = serviceManager.GetDailySoldProductsForStaff(staffID);
                var weeklySoldProduts    = serviceManager.GetWeeklySoldProductsForStaff(staffID);
                DailyWeeklyProduct model = new DailyWeeklyProduct {
                    daily = dailySoldProduts, weekly = weeklySoldProduts
                };

                string msg = this.Request.Params["msg"];
                ViewBag.Message = "Staff: " + msg;
                return(View("ProductReport", model));
            }
            else
            {
                return(RedirectToAction("ProductReport"));
            }
        }