diff --git a/server/AyaNova/biz/WidgetBiz.cs b/server/AyaNova/biz/WidgetBiz.cs index 355a06cf..a228ec73 100644 --- a/server/AyaNova/biz/WidgetBiz.cs +++ b/server/AyaNova/biz/WidgetBiz.cs @@ -265,13 +265,13 @@ namespace AyaNova.Biz } } + //////////////////////////////////////////////////////////////////////////////////////////////// + //SEARCH + // private async Task SearchIndexAsync(Widget obj, bool isNew) { - //SEARCH INDEXING var SearchParams = new Search.SearchIndexProcessObjectParameters(UserTranslationId, obj.Id, BizType); SearchParams.AddText(obj.Notes).AddText(obj.Name).AddText(obj.Serial).AddText(obj.Wiki).AddText(obj.Tags).AddCustomFields(obj.CustomFields); - - if (isNew) await Search.ProcessNewObjectKeywordsAsync(SearchParams); else @@ -288,16 +288,11 @@ namespace AyaNova.Biz } - - //////////////////////////////////////////////////////////////////////////////////////////////// //VALIDATION // - - //Can save or update? private async Task ValidateAsync(Widget proposedObj, Widget currentObj) { - //NOTE: In DB schema only name and serial are not nullable //run validation and biz rules @@ -351,15 +346,12 @@ namespace AyaNova.Biz //validate custom fields CustomFieldsValidator.Validate(this, FormCustomization, proposedObj.CustomFields); } - } - - //Can delete? - // private void ValidateCanDelete(Widget inObj) - // { - // //whatever needs to be check to delete this object - // } + private void ValidateCanDelete(Widget inObj) + { + //whatever needs to be check to delete this object + }