public static QualityViewModel MapFrom(ScrapDailyByPlant g) { return(new QualityViewModel { ID = g.ID, Amount = g.Amount, Plant = g.PlantCode, Year = g.Year, Month = g.Month, Day = g.Day }); }
public static async Task <QualityViewModel> MapFromAsync(ScrapDailyByPlant g) { return(await Task.Run(() => { return MapFrom(g); })); }