public void Save(CreateVatClassViewModel vatCl)
        {
            Guid id = vatCl.Id;
            VATClass vC;
            if (id == Guid.Empty)
            {
                vC = _vatClassFactory.CreateVATClass(vatCl.Name, vatCl.VatClass, vatCl.Rate, vatCl.EffectiveDate.Value);
            }
            else
            {
                vC = _vatClassRepository.GetById(id);
            }

            vC.Name = vatCl.Name;
            vC.VatClass = vatCl.VatClass;

            _vatClassRepository.Save(vC);
        }
        public ActionResult CreateVatClass(CreateVatClassViewModel vcm)
        {
            try
            {
                vcm.Id = Guid.NewGuid();
                _vatClassViewModelBuilder.Save(vcm);

                return RedirectToAction("CreateVatClass");
            }
            catch (DomainValidationException dve)
            {
                ValidationSummary.DomainValidationErrors(dve, ModelState);
                return View();
            }
            catch (Exception ex)
            {
                ViewBag.msg = ex.Message;
                return View();
            }
        }