using System; using System.Collections.Generic; namespace HRM.BO { #region Function public class Function : BasicBaseObject { #region Constructor public Function() { Code = string.Empty; Name = string.Empty; Status = EnumStatus.Active; } #endregion #region Properties public string Code { get; set; } public string Name { get; set; } //#region Service Factory IFunctionService : IFunctionService //internal static IFunctionService Service //{ // get { return Services.Factory.CreateService(typeof(IFunctionService)); } //} //#endregion #endregion } #endregion #region IFunction Service public interface IFunctionService { Function Get(int id); Function Get(string sCode); List Get(EnumStatus status); int Save(Function item); void Delete(int id); } #endregion }