コード例 #1
1
        public JsonResult AddClass(NewClassDetails classDetails)
        {
            ShowDetails showDetails = new ShowDetails(classDetails.ShowDetailsId);
            var NewClsId = showDetails.AddClass(classDetails);

            return Json(new
            {
                Status = 0,
                NewClsId
            });
        }
コード例 #2
0
        public int UpdateMods(NewClassDetails classDetails)
        {
            _showClasses = new ShowClasses(classDetails.ClassId);
            _showClasses.Anysize = classDetails.Anysize;
            _showClasses.Veteran = classDetails.Veteran;
            _showClasses.Lho = classDetails.lho;
            _showClasses.ClassCount = classDetails.ClassCount;
            _showClasses.AwardByHeight = classDetails.AwardByHeight;
            _showClasses.DisplayModifier = classDetails.DisplayModifier;

            return _showClasses.Update();
        }
コード例 #3
0
        public int AddClass(NewClassDetails classDetails)
        {
            _showClasses = new ShowClasses(classDetails.ClassId);

            _showClasses.ShowDetailsID = ID;
            _showClasses.ClassNo = classDetails.ClassNo;
            _showClasses.ClassName = classDetails.ClassName == null ? "" : classDetails.ClassName;
            _showClasses.Catagory = classDetails.Catagory;
            _showClasses.Height = classDetails.Height;
            _showClasses.Grades = classDetails.Grades == null ? "" : classDetails.Grades;
            _showClasses.ClassType = classDetails.ClassType;
            _showClasses.Position = classDetails.Position;
            return _showClasses.Update();
        }