예제 #1
0
 private DEditor StoD(SEditor editor)
 {
     return(new DEditor
     {
         Id = editor.Id,
         Title = editor.Title,
         Description = editor.Description,
         Address = editor.Address
     });
 }
예제 #2
0
 public void Update(SEditor editor)
 {
     EditorRepository.Update(StoD(editor));
 }
예제 #3
0
 public void Add(SEditor editor)
 {
     EditorRepository.Add(StoD(editor));
 }