public static MonthlyBreakdown MapFromObject(core.Models.MonthlyBreakdown obj, ResponseGenerator responseGenerator) { return(new MonthlyBreakdown() { Month = obj.Month, TotalExpense = obj.TotalExpense, Invoices = responseGenerator.GenerateBasicInvoicesList(obj.Invoices), Tickets = responseGenerator.GenerateBasicTicketList(obj.Tickets), Transfers = responseGenerator.GenerateBasicTransferList(obj.Transfers), }); }