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 }); }
public static async Task <BugsTopLevelViewModel> MapFromAsync(BugsTopLevel d) { return(await Task.Run(() => { return MapFrom(d); })); }