hytos / ID2.Manager / ID2.Manager.Controller / Controllers / UserController.cs @ 978488b0
이력 | 보기 | 이력해설 | 다운로드 (783 Bytes)
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 UserController : BaseController |
13 |
{ |
14 |
public IEnumerable<UserInfo> GetAllUserInfo() |
15 |
{ |
16 |
using (UserRepository rep = new UserRepository(this._DbConnectionStr)) |
17 |
{ |
18 |
return rep.GetAllUserInfo(); |
19 |
} |
20 |
} |
21 |
|
22 |
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 |
} |