public bool InsertMedDocInIndex(PutMedRegistrationRequest request) { try { MedNameStrategy.AddUpdateLuceneIndex(request.MedDocument); return true; } catch (Exception ex) { throw new Exception("SearchDD:GetSearchByID()::" + ex.Message, ex.InnerException); } }
public PutMedRegistrationResponse Put(PutMedRegistrationRequest request) { var response = new PutMedRegistrationResponse { Version = request.Version }; try { RequireUserId(request); response.Success = Manager.InsertMedDocInIndex(request); } catch (Exception ex) { RaiseException(response, ex); } return(response); }