public void Save(EditVatClassViewModel vatClass)
        {
            Guid id = vatClass.Id;
            VATClass vC;
            vC = _vatClassRepository.GetById(id);
            vC.Name = vatClass.Name;
            vC.VatClass = vatClass.VatClass;

            _vatClassRepository.Save(vC);
        }
 public EditVatClassViewModel Get(Guid Id)
 {
     VATClass vc = _vatClassRepository.GetById(Id);
     EditVatClassViewModel vm = new EditVatClassViewModel 
     {
         Id =  vc.Id,
         isActive = vc._Status == EntityStatus.Active ? true : false,
         Name = vc.Name,
         VatClass = vc.VatClass,
         VCItems = vc.VATClassItems.Select(n => new EditVatClassViewModel.VatClassItemVM{ 
             EffectiveDate = n.EffectiveDate, 
             Id=n.Id,
             Rate = n.Rate }).ToList()
         
     };
     return vm;
 }