public static ExtraProductsModel EntityToModel(this ExtraProducts entity, bool virtualActive = false)
        {
            try
            {
                ExtraProductsModel model = new ExtraProductsModel()
                {
                     Amount=entity.Amount,
                      ExtraProductCategoryId=entity.ExtraProductCategoryId,
                      Name=entity.Name,
                    IsActive = entity.IsActive,
                    Id = entity.Id
                };
                if (virtualActive)
                {
                    model.ExtraProductCategory = entity.ExtraProductCategory;
                    model.SaleExtras = entity.SaleExtras;

                }
                return model;
            }
            catch (Exception)
            {

                return new ExtraProductsModel();
            }
        }
        public ActionResult ProductInsert(ExtraProductsModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceExtraProducts.Insert(model.ModelToEnity());
            }

            return RedirectToAction("ProductList");
        }
        public ActionResult ProductEdit(ExtraProductsModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceExtraProducts.Update(model.ModelToEnity(true));
            }

            return RedirectToAction("ProductList");
        }