This commit is contained in:
2019-01-10 23:46:54 +00:00
parent d7c54cca70
commit 0a38df71dd
4 changed files with 52 additions and 47 deletions

View File

@@ -80,21 +80,21 @@ namespace AyaNova.Biz
}
}
////////////////////////////////////////////////////////////////////////////////////////////////
/// GET
//Get one
internal async Task<FormCustom> GetAsync(string formKey)
{
{
var ret = await ct.FormCustom.SingleOrDefaultAsync(m => m.FormKey == formKey);
//Do not log this, it's going to be called a zillion times anyway
//Do not log this, it's going to be called a zillion times anyway
return ret;
}
////////////////////////////////////////////////////////////////////////////////////////////////
@@ -128,7 +128,7 @@ namespace AyaNova.Biz
}
//NO DELETE, ONLY EDIT
//NO DELETE, ONLY EDIT
////////////////////////////////////////////////////////////////////////////////////////////////
//VALIDATION
@@ -167,7 +167,7 @@ namespace AyaNova.Biz
}
}
//Template json must parse
if (!string.IsNullOrWhiteSpace(inObj.Template))
@@ -176,6 +176,11 @@ namespace AyaNova.Biz
{
var v = JArray.Parse(inObj.Template);
/*
Example:
{template:[{fld:"ltkeyfieldname",hide:"true/false",required:"true/false", type:"bool"},{fld:"ltkeyfieldname",hide:"true/false",required:"true/false", type:"text"]}
*/
//Validate the following:
//FormKey is valid value
//All fields specified are valid values
@@ -266,7 +271,7 @@ namespace AyaNova.Biz
/////////////////////////////////////////////////////////////////////