示例#1
0
        public TaxSetupDTO GetTaxSetupById(int Id)
        {
            PayrollTaxSetup TaxSetup    = _unitOfWork.TaxSetupRepository.GetById(Id);
            TaxSetupDTO     TaxSetupDTO = TaxSetupRequestFormatter.ConvertRespondentInfoToDTO(TaxSetup);

            return(TaxSetupDTO);
        }
示例#2
0
        public int UpdateTaxSetup(TaxSetupDTO Record)
        {
            PayrollTaxSetup record   = TaxSetupRequestFormatter.ConvertRespondentInfoFromDTO(Record);
            var             response = _unitOfWork.TaxSetupRepository.Update(record);

            _unitOfWork.Save();
            return(record.MasterId);
        }
示例#3
0
 public static TaxSetupDTO ConvertRespondentInfoToDTO(PayrollTaxSetup TaxSetup)
 {
     Mapper.CreateMap <PayrollTaxSetup, TaxSetupDTO>().ForMember(d => d.PayrollTaxDetails, m => m.Ignore());
     return(Mapper.Map <PayrollTaxSetup, TaxSetupDTO>(TaxSetup));
 }
示例#4
0
        public void InsertIntoTaxSetup(TaxSetupDTO Record)
        {
            PayrollTaxSetup Data = TaxSetupRequestFormatter.ConvertRespondentInfoFromDTO(Record);

            _unitOfWork.TaxSetupRepository.Create(Data);
        }