Exemplo n.º 1
0
        /// <summary>
        /// 透過問題號碼取得問題
        /// </summary>
        /// <param name="number"></param>
        /// <returns></returns>
        public Issue GetIssueByNumber(string number)
        {
            IssueEntity issueEntity = _issueDao.Query(new IssueEntity()
            {
                Number = number
            }).FirstOrDefault();
            Issue issue = issueEntity.ObjectConvert <Issue>();

            return(issue);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get a specific issue
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Issue GetIssueById(int id)
        {
            IssueEntity issueEntity = _issueDao.Query(new IssueEntity()
            {
                Id = id
            }).FirstOrDefault();
            Issue issue = issueEntity.ObjectConvert <Issue>();

            return(issue);
        }