using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HRM.BO { public class CourseType : BasicBaseObject { #region Constructor public CourseType() { _parentTypeID = null; _tags = ""; _popularityScore = 0.0; _status = EnumStatus.Active; } #endregion #region Properties #region Name : string private string _name; public string Name { get { return _name; } set { _name = value; } } #endregion #region Description : string private string _description; public string Description { get { return _description; } set { _description = value; } } #endregion #region ParentTypeID private int? _parentTypeID; public int? ParentTypeID { get { return _parentTypeID; } set { _parentTypeID = value; } } #endregion #region Tags private string _tags; public string Tags { get { return _tags; } set { _tags = value; } } #endregion #region PopularityScore public double _popularityScore; public double PopularityScore { get { return _popularityScore; } set { _popularityScore = value; } } #endregion #endregion } #region ICourseType public interface ICourseType { int Save(CourseType oCourseType); void Delete(int ID); CourseType Get(int ID); List Get(EnumStatus status); List GetAll(); List GetByParent(int parentTypeID); } #endregion }