예제 #1
0
 public bool InsertMedDocInIndex(PutMedRegistrationRequest request)
 {
     try
     {
         MedNameStrategy.AddUpdateLuceneIndex(request.MedDocument);
         return true;
     }
     catch (Exception ex)
     {
         throw new Exception("SearchDD:GetSearchByID()::" + ex.Message, ex.InnerException);
     }
 }
예제 #2
0
        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);
        }