Exemple #1
0
        public int UpdateInsuranceCompany(InsuranceCompanyDTO Record)
        {
            InsuranceCompany ReturnRecord = InsuranceCompanyRequestFormatter.ConvertRespondentInfoFromDTO(Record);
            var res = _unitOfWork.InsuranceCompanyRepository.Update(ReturnRecord);

            return(res);
        }
Exemple #2
0
 public InsuranceCompanyDTO GetInsuranceCompanyById(int Id)
 {
     return(InsuranceCompanyRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.InsuranceCompanyRepository.GetById(Id)));
 }
Exemple #3
0
        public InsuranceCompanyDTO InsertInsuranceCompany(InsuranceCompanyDTO Record)
        {
            InsuranceCompany ReturnRecord = InsuranceCompanyRequestFormatter.ConvertRespondentInfoFromDTO(Record);

            return(InsuranceCompanyRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.InsuranceCompanyRepository.Create(ReturnRecord)));
        }