Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public string GetResultFormatterOkString(GarmentInvoiceMonitoringViewModel garmentInvoiceMonitoringViewModel)
        {
            var result = GetResultFormatterOk(garmentInvoiceMonitoringViewModel);

            return(JsonConvert.SerializeObject(result));
        }