113 lines
2.1 KiB
C#
113 lines
2.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace HRM.BO
|
|||
|
|
{
|
|||
|
|
public class Lessons : BasicBaseObject
|
|||
|
|
{
|
|||
|
|
#region Constructor
|
|||
|
|
public Lessons()
|
|||
|
|
{
|
|||
|
|
_lessonTitle = "";
|
|||
|
|
_lessonNo = "";
|
|||
|
|
_description = "";
|
|||
|
|
_duration = "";
|
|||
|
|
_difficultyLevel = EnumDifficultyLevel.Beginner;
|
|||
|
|
_isQuizAvailable = false;
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Properties
|
|||
|
|
|
|||
|
|
#region CourseID
|
|||
|
|
private int _courseID;
|
|||
|
|
public int CourseID
|
|||
|
|
{
|
|||
|
|
get { return _courseID; }
|
|||
|
|
set { _courseID = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region LessonTitle
|
|||
|
|
private string _lessonTitle;
|
|||
|
|
public string LessonTitle
|
|||
|
|
{
|
|||
|
|
get { return _lessonTitle; }
|
|||
|
|
set { _lessonTitle = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region LessonNo
|
|||
|
|
private string _lessonNo;
|
|||
|
|
public string LessonNo
|
|||
|
|
{
|
|||
|
|
get { return _lessonNo; }
|
|||
|
|
set { _lessonNo = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Description
|
|||
|
|
private string _description;
|
|||
|
|
public string Description
|
|||
|
|
{
|
|||
|
|
get { return _description; }
|
|||
|
|
set { _description = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Duration
|
|||
|
|
private string _duration;
|
|||
|
|
public string Duration
|
|||
|
|
{
|
|||
|
|
get { return _duration; }
|
|||
|
|
set { _duration = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region DifficultyLevel
|
|||
|
|
private EnumDifficultyLevel _difficultyLevel;
|
|||
|
|
public EnumDifficultyLevel DifficultyLevel
|
|||
|
|
{
|
|||
|
|
get { return _difficultyLevel; }
|
|||
|
|
set { _difficultyLevel = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region IsQuizAvailable
|
|||
|
|
private bool? _isQuizAvailable;
|
|||
|
|
public bool? IsQuizAvailable
|
|||
|
|
{
|
|||
|
|
get { return _isQuizAvailable; }
|
|||
|
|
set { _isQuizAvailable = value; }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Lesson Content
|
|||
|
|
public List<LessonContent> LessonContents;
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region LessonTemplate
|
|||
|
|
public LMSTemplate LessonTemplate;
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#region ILessons
|
|||
|
|
public interface ILessonsService
|
|||
|
|
{
|
|||
|
|
int Save(Lessons oLessons);
|
|||
|
|
void Delete(int ID);
|
|||
|
|
void UpdateLessonStatus(Lessons oLessons);
|
|||
|
|
Lessons Get(int ID);
|
|||
|
|
List<Lessons> Get(EnumStatus status);
|
|||
|
|
List<Lessons> Get(EnumStatus status, int courseID);
|
|||
|
|
List<Lessons> GetAll();
|
|||
|
|
List<Lessons> GetByCourseID(int courseID);
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
}
|