public static FinanceViewModel MapFrom(CWODailyByPlant f) { return(new FinanceViewModel { ID = f.ID, Company = f.CompanyCode, Year = f.Year, Month = f.Month, Day = f.Day, Amount = f.Amount }); }
public static async Task <FinanceViewModel> MapFromAsync(CWODailyByPlant f) { return(await Task.Run(() => { return MapFrom(f); })); }