hytos / ID2.Manager / ID2.Manager.Controller / Controllers / UserController.cs @ 709c1971
이력 | 보기 | 이력해설 | 다운로드 (783 Bytes)
1 | 8164f84e | 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 UserController : BaseController |
||
13 | { |
||
14 | 709c1971 | yoush97 | public IEnumerable<UserInfo> GetAllUserInfo() |
15 | { |
||
16 | using (UserRepository rep = new UserRepository(this._DbConnectionStr)) |
||
17 | { |
||
18 | return rep.GetAllUserInfo(); |
||
19 | } |
||
20 | } |
||
21 | |||
22 | 8164f84e | yoush97 | public UserInfo GetUserInfo(string userId, string userPW) |
23 | { |
||
24 | using (UserRepository rep = new UserRepository(this._DbConnectionStr)) |
||
25 | { |
||
26 | return rep.GetUserInfo(userId, userPW); |
||
27 | } |
||
28 | } |
||
29 | } |
||
30 | } |