// GET: Purchase/Create
        public ActionResult SalesFoodMenu(long?id, string type)
        {
            SalesModel purchaseModel = new SalesModel();

            if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true || UserRolePermissionForPage.View == true)
            {
                if (id > 0)
                {
                    ViewBag.ActionType = type;
                    long purchaseId = Convert.ToInt64(id);
                    purchaseModel = _iSalesService.GetPurchaseFoodMenuById(purchaseId);
                }
                else
                {
                    purchaseModel.Date        = DateTime.UtcNow.AddMinutes(LoginInfo.Timeoffset);
                    purchaseModel.ReferenceNo = _iSalesService.ReferenceNumberFoodMenu().ToString();
                }
                purchaseModel.CustomerList = _iDropDownService.GetCustomerList();
                purchaseModel.StoreList    = _iDropDownService.GetStoreList();
                purchaseModel.EmployeeList = _iDropDownService.GetEmployeeList();
                return(View(purchaseModel));
            }
            else
            {
                return(RedirectToAction("NotFound", "Error"));
            }
        }