public static Schedule Casting(schedule s) { Schedule presence = new Schedule { Code_schedule = s.code_schedule, Clss = s.@class, Day = s.day, Hour_in_dey = s.hour_in_dey, SubjectIn = s.subjectIn, Techer = s.techer }; return(presence); }
public static schedule Casting(common.Schedule s) { var n = s.su == true ? 2 : 0; schedule presence = new schedule { day = s.Day, @class = s.Clss, hour_in_dey = s.Hour_in_dey, groups = n, subjectIn = s.SubjectIn, techer = s.Techer }; return(presence); }