コード例 #1
0
 public static BugsTopLevelViewModel MapFrom(BugsTopLevel d)
 {
     return(new BugsTopLevelViewModel
     {
         ID = d.ID,
         Project = d.Project,
         Description = d.Description,
         Creator = d.Creator,
         Assignee = d.Assignee,
         Type = d.Type,
         Notes = d.Notes,
         DateCreated = d.DateCreated,
         DateClosed = d.DateClosed,
         Tags = d.Tags
     });
 }
コード例 #2
0
 public static async Task <BugsTopLevelViewModel> MapFromAsync(BugsTopLevel d)
 {
     return(await Task.Run(() => { return MapFrom(d); }));
 }