public void addMedicalGroup() { MedicalGroup _MedicalGroup = new MedicalGroup { MedicalGroupName = "MGNjks", MGAddress = "MGAddress", MGAddress2 = "MGAdress2", MGCity = "MGCity", MGStateID = 1, MGZip = "21311", MGNote = "MGNotesss" }; var _id = _medicalGroupRepository.addMedicalGroup(_MedicalGroup); Assert.IsTrue(_id > 0, "failed"); }
public void updateThirdPartyAdministrato() { MedicalGroup _MedicalGroup = new MedicalGroup { MedicalGroupID = 1, MedicalGroupName = "MGNjksNEw", MGAddress = "MGAddressNew", MGAddress2 = "MGAdress2New", MGCity = "MGCitysd", MGStateID = 1, MGZip = "21311", MGNote = "MGNotesssdddddd" }; var _id = _medicalGroupRepository.updateMedicalGroup(_MedicalGroup); Assert.IsTrue(_id > 0, "failed"); }
public ActionResult SaveMedicalGroupDetail(MedicalGroup _medicalGroup) { var message = GlobalConst.ConstantChar.StringBlank; try { _medicalGroup.MedicalGroupName = _medicalGroup.MedicalGroupName.Trim(); if (_medicalGroup.MedicalGroupID != GlobalConst.ConstantChar.Zero) { int i = _iPaticipantService.updateMedicalGroup(Mapper.Map <MMCService.PaticipantService.MedicalGroup>(_medicalGroup)); if (i > GlobalConst.ConstantChar.Zero) { message = GlobalConst.Message.UpdateMessage; } else { message = GlobalConst.Message.ErrorMessage; } } else { int i = _iPaticipantService.addMedicalGroup(Mapper.Map <MMCService.PaticipantService.MedicalGroup>(_medicalGroup)); if (i > GlobalConst.ConstantChar.Zero) { message = GlobalConst.Message.SaveMessage; } else { message = GlobalConst.Message.ErrorMessage; } } } catch { message = GlobalConst.Message.ErrorMessage; } return(Json(message)); }
public int updateMedicalGroup(MedicalGroup _medicalGroup) { return(_MedicalGroupRepo.Update(_medicalGroup)); }
public int addMedicalGroup(MedicalGroup _medicalGroup) { return(_MedicalGroupRepo.Add(_medicalGroup).MedicalGroupID); }
public int updateMedicalGroup(MedicalGroup _medicalGroup) { return(_iMedicalGroupRepository.updateMedicalGroup(Mapper.Map <DTO.MedicalGroup, MMC.Core.Data.Model.MedicalGroup>(_medicalGroup))); }