public OwnApiHttpResponse Test() { RopPrdProductAdd rop = new RopPrdProductAdd(); rop.Name = "dasddd"; rop.DetailsDes = "Das"; rop.BarCode = "Dadsad"; MerchServiceFactory.PrdProduct.Add("das", "2", rop); IResult result = new CustomJsonResult { Result = ResultType.Success, Code = ResultCode.Success, Data = { } }; return(new OwnApiHttpResponse(result)); }
public OwnApiHttpResponse Add([FromBody] RopPrdProductAdd rop) { IResult result = MerchServiceFactory.PrdProduct.Add(this.CurrentUserId, this.CurrentMerchId, rop); return(new OwnApiHttpResponse(result)); }