public ActionResult CategoryEdit(ExtraProductCategoriesModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceExtraProductCategories.Update(model.ModelToEnity(true));
            }

            return RedirectToAction("CategoryList");
        }
        public static ExtraProductCategoriesModel EntityToModel(this ExtraProductCategories entity, bool virtualActive = false)
        {
            try
            {
                ExtraProductCategoriesModel model = new ExtraProductCategoriesModel()
                {
                    Name=entity.Name,
                    IsActive = entity.IsActive,
                    Id = entity.Id
                };
                if (virtualActive)
                {
                    model.PacketsExtraProductCategories = entity.PacketsExtraProductCategories;
                    model.ExtraProducts = entity.ExtraProducts;

                }
                return model;
            }
            catch (Exception)
            {

                return new ExtraProductCategoriesModel();
            }
        }