示例#1
0
 public static common.subjectToClass Casting(subjectToClass subject)
 {
     common.subjectToClass subjectToClass = new common.subjectToClass()
     {
         CodeSubject = subject.codeSubject,
         Name        = subject.name,
         Group1      = subject.group1,
         Group2      = subject.group2
     };
     return(subjectToClass);
 }
示例#2
0
        public static subjectToClass Casting(common.subjectToClass subject)
        {
            subjectToClass subjectToClass = new subjectToClass
            {
                codeSubject = subject.CodeSubject,
                name        = subject.Name,
                group1      = subject.Group1,
                group2      = subject.Group2
            };

            return(subjectToClass);
        }
 public static void Update(common.subjectToClass subjectToClass)
 {
     dal.subjectToClass.Update(subjectToClass);
 }
        //public static List<common.subjectToClass> GetSubjects()
        //{
        //    dal.subjectToClass.GetTeachers();

        //}
        public static void addSubject(common.subjectToClass s)
        {
            dal.subjectToClass.Add(s);
        }