Пример #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);
        }