public qtPosition ThemMoi_HieuChinhPosition(int PositionId, string PositionName,
                                                    string Code, int?SortOrder, bool?Status, DateTime?DateCreated)
        {
            qtPositionService _position = new qtPositionService();

            qtPosition position = new qtPosition();

            if (PositionId > 0)
            {
                position = _position.FindByKey(PositionId);
            }

            position.PositionName = PositionName;
            position.Code         = Code;
            position.SortOrder    = SortOrder;
            position.Status       = Status;
            position.CreateDate   = DateCreated;

            if (position.PositionId > 0)
            {
                _position.Update(position);
            }
            else
            {
                _position.Insert(position);
            }

            return(position);
        }
        public string PositionName(int?PositionId)
        {
            string PositionName = string.Empty;

            if (PositionId.HasValue)
            {
                qtPositionService _position = new qtPositionService();
                qtPosition        position  = _position.FindByKey(PositionId);
                if (position != null)
                {
                    return(position.PositionName);
                }
                return(PositionName);
            }
            return(PositionName);
        }