public async Task <IActionResult> SetPath([FromBody] SetPath.Request req) { var rec = await Common2DB.GenericDatas.FindAsync(GenericData.Type.TranslationTablePath); if (rec == null) { rec = new GenericData(); rec.TranslationTableRecord(req.path); await Common2DB.GenericDatas.AddAsync(rec); } else { rec.TranslationTableRecord(req.path); } await Common2DB.SaveChangesAsync(); await TranslationTable.LoadAsync(Common2DB); return(Ok(req.path)); }