public AssignSubject(assignsubject assignsubject) { this.Id = assignsubject.Id; this.ClassId = assignsubject.ClassId; this.SubjectId = assignsubject.SubjectId; this.SectionId = assignsubject.SectionId; this.TeacherId = assignsubject.TeacherId; this.IsActive = assignsubject.IsActive; }
public assignsubject GetDataObject() { var dataObject = new assignsubject() { Id = this.Id, ClassId = this.ClassId, SubjectId = this.SubjectId, SectionId = this.SectionId, TeacherId = this.TeacherId, IsActive = this.IsActive }; return(dataObject); }