개정판 5b086e44
issue #00000 markus user insert 로직 추가
Change-Id: Id93ae38b80f01f5f2c660445ee7f2640dc63855d
ID2.Manager/ID2.Manager.Controller/Controllers/MarkusInfoController.cs | ||
---|---|---|
51 | 51 |
|
52 | 52 |
return result; |
53 | 53 |
} |
54 |
|
|
55 |
public bool SetMembers(IEnumerable<UserInfo> users) |
|
56 |
{ |
|
57 |
bool result = false; |
|
58 |
|
|
59 |
try |
|
60 |
{ |
|
61 |
using (MarkusRepository rep = new MarkusRepository(this._MARKUSCONNSTR)) |
|
62 |
{ |
|
63 |
foreach (var user in users) |
|
64 |
{ |
|
65 |
rep.InsertOrUpdateUsers(new Dapper.Entities.MEMBER |
|
66 |
{ |
|
67 |
ID = user.ID, |
|
68 |
NAME = user.Name, |
|
69 |
DEPARTMENT = "SAMSUNG ELEC", |
|
70 |
POSITION = user.Role, |
|
71 |
EMAIL_ADDRESS = user.ID, |
|
72 |
PASSWORD = "", |
|
73 |
COMPANY = "SAMSUNG ELEC", |
|
74 |
CREATE_DATETIME = DateTime.Now, |
|
75 |
MODIFIED_DATETIME = DateTime.Now, |
|
76 |
ISLICENSE = 1 |
|
77 |
}); |
|
78 |
} |
|
79 |
|
|
80 |
result = true; |
|
81 |
} |
|
82 |
} |
|
83 |
catch (Exception) |
|
84 |
{ |
|
85 |
throw; |
|
86 |
} |
|
87 |
|
|
88 |
return result; |
|
89 |
} |
|
54 | 90 |
} |
55 | 91 |
} |
내보내기 Unified diff