Exemplo n.º 1
0
        private DtoSelectCenterResult CreateSelectCenterResultItem(DtoSelectCenterCourseObject obj, Dictionary <string, decimal> voucherDic)
        {
            DtoSelectCenterResult result = new DtoSelectCenterResult();

            result.CourseId           = obj.CourseId;
            result.CoursePrice        = obj.CoursePrice;
            result.CourseImage        = obj.CourseImage.ToOssPath();
            result.CourseName         = obj.CourseName;
            result.CourseType         = obj.CourseType;
            result.Grade              = obj.Grade;
            result.BaseVoucherPrice   = voucherDic.ContainsKey(obj.CourseId + "_" + 1) ? voucherDic[obj.CourseId + "_" + 1] : 0;
            result.SchoolVoucherPrice = voucherDic.ContainsKey(obj.CourseId + "_" + 2) ? voucherDic[obj.CourseId + "_" + 2] : 0;
            result.LessonCount        = obj.LessonCount;
            result.SellCount          = obj.SellCount;
            return(result);
        }
Exemplo n.º 2
0
 private DtoSelectCenterResult CreateSelectCenterResultItem(DtoSelectCenterCourseObject obj)
 {
     return(CreateSelectCenterResultItem(obj, new Dictionary <string, decimal>()));
 }