public ActionResult AddSalesDetail(SalesDetail salesDetail)
        {
            var brandListItems = new ProductListViewModel().GetBrandListItems();

            ViewBag.brandListItems = brandListItems;
            var productListItems = new ProductListViewModel().GetProductNameListItems();

            ViewBag.productListItems = productListItems;
            var customerListItems = new CustomerListViewModel().GetCustomerListItems();

            ViewBag.customerListItems = customerListItems;
            var employeeListItems = new EmployeeListViewModel().GetEmployeeListItems();

            ViewBag.employeeListItems = employeeListItems;
            if (!ModelState.IsValid)
            {
                return(View("AddSalesDetail"));
            }
            _salesDetailManager.Add(salesDetail);
            return(RedirectToAction("Index"));
        }
 public ActionResult Sell(SalesDetail salesDetail)
 {
     salesDetail.SalesDetailDate = DateTime.Parse(DateTime.Now.ToShortDateString());
     _salesDetailManager.Add(salesDetail);
     return(RedirectToAction("Index", "SalesDetails"));
 }