hytos / ID2.Manager / ID2.Manager.Controller / Controllers / ProjectController.cs @ be2dacfc
이력 | 보기 | 이력해설 | 다운로드 (1.07 KB)
1 | cab8a4a1 | yoush97 | 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 | 8e373ccf | yoush97 | public IEnumerable<ProjectInfo> GetProjectGroupList() |
15 | cab8a4a1 | yoush97 | { |
16 | using (ProjectRepository rep = new ProjectRepository(this._DbConnectionStr)) |
||
17 | { |
||
18 | 8e373ccf | yoush97 | return rep.GetProjectGroupList(); |
19 | cab8a4a1 | yoush97 | } |
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 | } |