SPEC:
- Inizio a generare ricetta da template
This commit is contained in:
@@ -65,14 +65,21 @@ namespace MP.Data.Controllers
|
||||
{
|
||||
string rawData = File.ReadAllText(fullPath);
|
||||
var currRecipe = JsonConvert.DeserializeObject<RecipeConfig>(rawData);
|
||||
// copio la mia ricetta...
|
||||
// copio la mia ricetta come conf...
|
||||
answ = new RecipeModel()
|
||||
{
|
||||
IdxPODL = idxPODL,
|
||||
TemplateFile = currRecipe.TemplateFile,
|
||||
HeadConf = currRecipe.HeadConf,
|
||||
RowsConf = currRecipe.RowsConf
|
||||
RowsConf = currRecipe.RowsConf,
|
||||
HeadVal = currRecipe.HeadConf.ListKeys,
|
||||
// aggiungo 1 riga...
|
||||
RowsVal = new Dictionary<int, Dictionary<string, string>>()
|
||||
{
|
||||
{ 1, currRecipe.RowsConf.ListKeys}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
return answ;
|
||||
@@ -82,7 +89,7 @@ namespace MP.Data.Controllers
|
||||
|
||||
private static IConfiguration _configuration;
|
||||
|
||||
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
|
||||
private static Logger Log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public static string RecipePath(string ruleName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user