public void Edit(TaxTypeModel taxtypemodel)
        {
            Mapper.Initialize(map => { map.CreateMap <TaxTypeModel, TaxType>(); });
            var taxData = Mapper.Map <TaxType>(taxtypemodel);

            taxRepository.Edit(taxData);
        }
 public bool Save(lmsTaxMaster entity)
 {
     try
     {
         if (entity.TAXID > 0)
         {
             taxRepository.Edit(entity);
         }
         else
         {
             taxRepository.Add(entity);
         }
         taxRepository.Save();
         return(true);
     }
     catch (Exception)
     {
         throw;
     }
 }