예제 #1
0
        public Dictionary <string, object> GetResultFormatterOk(GarmentPreparingViewModel garmentExpenditureGoodViewModel)
        {
            var data = garmentExpenditureGoodViewModel;

            Dictionary <string, object> result =
                new ResultFormatter("1.0", General.OK_STATUS_CODE, General.OK_MESSAGE)
                .Ok(data);

            return(result);
        }
예제 #2
0
        public GarmentPreparingViewModel GetNewData()
        {
            long nowTicks = DateTimeOffset.Now.Ticks;

            var data = new GarmentPreparingViewModel
            {
                Article           = "",
                CreatedBy         = "",
                ProductCode       = "ProductCode1",
                IsCuttingIn       = true,
                Quantity          = 20,
                RemainingQuantity = 0,
                RONo = "RONo123"
            };

            return(data);
        }
예제 #3
0
        public string GetResultFormatterOkString(GarmentPreparingViewModel garmentExpenditureGoodViewModel)
        {
            var result = GetResultFormatterOk(garmentExpenditureGoodViewModel);

            return(JsonConvert.SerializeObject(result));
        }