Esempio n. 1
0
 public static ReceiptSourceEditorForm FromReceiptSource(ReceiptSource source)
 {
     return(new ReceiptSourceEditorForm
     {
         ReceiptSourceId = source.Id,
         Name = source.Name
     });
 }
Esempio n. 2
0
 public void UpdateReceiptSource(ReceiptSource category, ApplicationDbContext context)
 {
     category.Name = this.Name.TrimmedOrNull();
 }