public static QualityViewModel MapFrom(ScrapStage g) { return(new QualityViewModel { PlantCode = g.PlantCode, ControlNumber = g.ControlNumber, Job = g.Job, Suffix = g.Suffix, PartNum = g.PartNum, Description = g.Description, QtyDisposed = g.QtyDisposed, DisposedValue = g.DisposedValue, Year = g.Year, Month = g.Month, Day = g.Day }); }
public static async Task <QualityViewModel> MapFromAsync(ScrapStage g) { return(await Task.Run(() => { return MapFrom(g); })); }