프로젝트

일반

사용자정보

통계
| 개정판:

hytos / ID2.Manager / ID2.Manager.Controller / Controllers / ProjectController.cs @ 8e373ccf

이력 | 보기 | 이력해설 | 다운로드 (1.07 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

    
7
using ID2.Manager.Data.Models;
8
using ID2.Manager.Dapper.Repository;
9

    
10
namespace ID2.Manager.Controller.Controllers
11
{
12
    public class ProjectController : BaseController
13
    {
14
        public IEnumerable<ProjectInfo> GetProjectGroupList()
15
        {
16
            using (ProjectRepository rep = new ProjectRepository(this._DbConnectionStr))
17
            {
18
                return rep.GetProjectGroupList();
19
            }
20
        }
21

    
22
        public IEnumerable<ProjectInfo> GetProjectList(string ProjectID, bool IsGroup)
23
        {
24
            using (ProjectRepository rep = new ProjectRepository(this._DbConnectionStr))
25
            {
26
                return rep.GetProjectList(ProjectID, IsGroup);
27
            }
28
        }
29

    
30
        public ProjectInfo GetProjectInfo(string ProjectID)
31
        {
32
            using (ProjectRepository rep = new ProjectRepository(this._DbConnectionStr))
33
            {
34
                return rep.GetProjectInfo(ProjectID);
35
            }
36
        }
37
    }
38
}
클립보드 이미지 추가 (최대 크기: 500 MB)