public Dictionary <string, object> GetResultFormatterOk(GarmentInvoiceMonitoringViewModel garmentInvoiceMonitoringViewModel) { var data = garmentInvoiceMonitoringViewModel; Dictionary <string, object> result = new ResultFormatter("1.0", General.OK_STATUS_CODE, General.OK_MESSAGE) .Ok(data); return(result); }
public GarmentInvoiceMonitoringViewModel GetNewData() { long nowTicks = DateTimeOffset.Now.Ticks; var data = new GarmentInvoiceMonitoringViewModel { InvoiceNo = "InvoiceNo", InvoiceDate = DateTimeOffset.Now, BuyerAgentName = "BuyerAgentName", PEBDate = DateTimeOffset.Now, FOB = 20, FOBIdr = 200, FAB = 200, FABIdr = 200, ToBePaid = 200, ToBePaidIdr = 200, CurrencyCode = "USD", Rate = 200 }; return(data); }
public string GetResultFormatterOkString(GarmentInvoiceMonitoringViewModel garmentInvoiceMonitoringViewModel) { var result = GetResultFormatterOk(garmentInvoiceMonitoringViewModel); return(JsonConvert.SerializeObject(result)); }