This commit is contained in:
2020-03-17 18:55:39 +00:00
parent 05bd6db5c6
commit f10ae6829e
3 changed files with 13 additions and 16 deletions

View File

@@ -152,15 +152,15 @@ namespace AyaNova.Biz
//
//put
internal async Task<bool> ReplaceAsync(AyaType ayaType, string template)
internal async Task<bool> ReplaceAsync(PickListTemplate template)
{
var o = await ct.PickListTemplate.FirstOrDefaultAsync(m => m.Id == (long)ayaType);
var o = await ct.PickListTemplate.FirstOrDefaultAsync(m => m.Id == (long)template.Id);
if (o == null)
{
o = new PickListTemplate();
}
o.Id = (long)ayaType;
o.Template = template;
o.Id = (long)template.Id;
o.Template = template.Template;
Validate(o);