public T MapToTableModel <T>() where T : class
 {
     DataAccessLogic.tblCourse course = new DataAccessLogic.tblCourse();
     course.ID          = this.ID;
     course.Title       = this.Title;
     course.Description = this.Description;
     return(course as T);
 }
 public CourseEntity(DataAccessLogic.tblCourse course)
 {
     this.ID          = course.ID;
     this.Name        = course.Name;
     this.Description = course.Description;
     this.CreatedBy   = course.CreatedBy;
     this.CreatedDate = course.CreatedDate;
 }
        public T MapToModel <T>() where T : class
        {
            DataAccessLogic.tblCourse course = new DataAccessLogic.tblCourse();
            course.ID          = this.ID;
            course.Name        = this.Name;
            course.Description = this.Description;
            course.CreatedBy   = this.CreatedBy;
            course.CreatedDate = this.CreatedDate;

            return(course as T);
        }
 public CourseEntity(DataAccessLogic.tblCourse tblCourse)
 {
     this.ID          = tblCourse.ID;
     this.Title       = tblCourse.Title;
     this.Description = tblCourse.Description;
 }