public void addPatientClaimAddOnBodyPart() { PatientClaimAddOnBodyPart _PatientClaimAddOnBodyPart = new PatientClaimAddOnBodyPart { AddOnBodyPartID = 6, PatientClaimID = 1, BodyPartStatusID = 1 }; var _id = _patientRepository.addPatientClaimAddOnBodyPart(_PatientClaimAddOnBodyPart); Assert.IsTrue(_id > 0, "failed"); }
public void updatePatientClaimAddOnBodyPart() { PatientClaimAddOnBodyPart _PatientClaimAddOnBodyPart = new PatientClaimAddOnBodyPart { AddOnBodyPartID = 5, PatientClaimID = 3, PatientClaimAddOnBodyPartID = 18, BodyPartStatusID = 2 }; var _id = _patientRepository.updatePatientClaimAddOnBodyPart(_PatientClaimAddOnBodyPart); Assert.IsTrue(_id > 0, "failed"); }
public ActionResult SavePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart PatientClaimAddOnBodyPartDetails) { var _Result = GlobalConst.ConstantChar.Zero; try { if (PatientClaimAddOnBodyPartDetails.PatientClaimAddOnBodyPartID == GlobalConst.ConstantChar.Zero) { _Result = _iPatientService.addPatientClaimAddOnBodyPart(Mapper.Map <MMCService.PatientService.PatientClaimAddOnBodyPart>(PatientClaimAddOnBodyPartDetails)); } else { _iPatientService.updatePatientClaimAddOnBodyPart(Mapper.Map <MMCService.PatientService.PatientClaimAddOnBodyPart>(PatientClaimAddOnBodyPartDetails)); _Result = GlobalConst.ConstantChar.MinusOne; } } catch { _Result = GlobalConst.ConstantChar.Zero; } return(Json(_Result)); }
public int updatePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart) { return(_patientRepository.updatePatientClaimAddOnBodyPart(Mapper.Map <DTO.PatientClaimAddOnBodyPart, MMC.Core.Data.Model.PatientClaimAddOnBodyPart>(_patientAddOnBodyPart))); }
public int updatePatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart) { return(_patientClaimAddOnBodyPartRepo.Update(_patientAddOnBodyPart)); }
public int addPatientClaimAddOnBodyPart(PatientClaimAddOnBodyPart _patientAddOnBodyPart) { return(_patientClaimAddOnBodyPartRepo.Add(_patientAddOnBodyPart).PatientClaimAddOnBodyPartID); }