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); }
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); }
public string GetResultFormatterOkString(GarmentPreparingViewModel garmentExpenditureGoodViewModel) { var result = GetResultFormatterOk(garmentExpenditureGoodViewModel); return(JsonConvert.SerializeObject(result)); }