Example #1
0
        public int UpdateEmployeeBank(EmployeeBankDTO data)
        {
            EmployeeBank dataToUpdate = EmployeeBankRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var          res          = _unitOfWork.EmployeeBankRepository.Update(dataToUpdate);

            return(res);
        }
Example #2
0
        public EmployeeBankDTO InsertEmployeeBank(EmployeeBankDTO data)
        {
            EmployeeBank dataToInsert = new EmployeeBank();

            dataToInsert = EmployeeBankRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(EmployeeBankRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeBankRepository.Create(dataToInsert)));
        }