diff --git a/server/AyaNova/biz/Search.cs b/server/AyaNova/biz/Search.cs new file mode 100644 index 00000000..e60c12df --- /dev/null +++ b/server/AyaNova/biz/Search.cs @@ -0,0 +1,54 @@ +using System; +using System.IO; +using Newtonsoft.Json.Linq; +using Microsoft.Extensions.Logging; +using AyaNova.Util; +using AyaNova.Models; + + +namespace AyaNova.Biz +{ + + + public static class Search + { + // private readonly AyContext ct; + // private readonly ILogger log; + + // public PrimeData(AyContext dbcontext, ILogger logger) + // { + // ct = dbcontext; + // log = logger; + // } + + /// + /// Process the keywords into the dictionary + /// + public static void ProcessKeywords(AyContext ct, long objectID, AyaType objectType, bool newRecord, string keyWords, string name) + { + // //get a db and logger + // ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("PrimeData"); + // User u = new User(); + // u.Active=true; + // u.Name = "AyaNova Administrator"; + // u.Salt = Hasher.GenerateSalt(); + // u.Login = "manager"; + // u.Password = Hasher.hash(u.Salt, "l3tm3in"); + // u.Roles = AuthorizationRoles.BizAdminFull | AuthorizationRoles.OpsAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull; + // u.OwnerId = 1; + // u.LocaleId=ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;//Ensure primeLocales is called first + // u.UserType=UserType.Administrator; + // u.UserOptions=new UserOptions(1); + // ct.User.Add(u); + // ct.SaveChanges(); + + } + + + + + + + }//eoc + +}//eons \ No newline at end of file