Beispiel #1
0
        public EmployeeBankDTO InsertEmployeeBank(EmployeeBankDTO data)
        {
            EmployeeBank dataToInsert = new EmployeeBank();

            dataToInsert = EmployeeBankRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(EmployeeBankRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeBankRepository.Create(dataToInsert)));
        }
Beispiel #2
0
 public EmployeeBankDTO GetEmployeeBankId(int id)
 {
     return(EmployeeBankRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeBankRepository.GetById(id)));
 }