This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user