public TaxSetupDTO GetTaxSetupById(int Id) { PayrollTaxSetup TaxSetup = _unitOfWork.TaxSetupRepository.GetById(Id); TaxSetupDTO TaxSetupDTO = TaxSetupRequestFormatter.ConvertRespondentInfoToDTO(TaxSetup); return(TaxSetupDTO); }
public int UpdateTaxSetup(TaxSetupDTO Record) { PayrollTaxSetup record = TaxSetupRequestFormatter.ConvertRespondentInfoFromDTO(Record); var response = _unitOfWork.TaxSetupRepository.Update(record); _unitOfWork.Save(); return(record.MasterId); }
public static TaxSetupDTO ConvertRespondentInfoToDTO(PayrollTaxSetup TaxSetup) { Mapper.CreateMap <PayrollTaxSetup, TaxSetupDTO>().ForMember(d => d.PayrollTaxDetails, m => m.Ignore()); return(Mapper.Map <PayrollTaxSetup, TaxSetupDTO>(TaxSetup)); }
public void InsertIntoTaxSetup(TaxSetupDTO Record) { PayrollTaxSetup Data = TaxSetupRequestFormatter.ConvertRespondentInfoFromDTO(Record); _unitOfWork.TaxSetupRepository.Create(Data); }