Ejemplo n.º 1
0
        public CustomJsonResult GetList(string operater, string merchId, RupPrdSubjectGetList rup)
        {
            var result = new CustomJsonResult();

            var prdSubjects = CurrentDb.PrdSubject.Where(m => m.MerchId == merchId).OrderBy(m => m.Priority).ToList();

            var topPrdSubject = prdSubjects.Where(m => m.Depth == 0).FirstOrDefault();

            var tree = GetTree(topPrdSubject.PId, prdSubjects);

            result = new CustomJsonResult(ResultType.Success, ResultCode.Success, "", tree);

            return(result);
        }
Ejemplo n.º 2
0
        public OwnApiHttpResponse GetList([FromUri] RupPrdSubjectGetList rup)
        {
            IResult result = MerchServiceFactory.PrdSubject.GetList(this.CurrentUserId, this.CurrentMerchId, rup);

            return(new OwnApiHttpResponse(result));
        }