Beispiel #1
0
 public List <Model.Users.UserInfo> FindAll()
 {
     using (var context = new Context.IdentityExDbEntities())
     {
         return(context.UserInfoes.MapToUserInfos());
     }
 }
Beispiel #2
0
 public Model.Users.UserInfo FindBy(int key)
 {
     using (var context = new Context.IdentityExDbEntities())
     {
         return(context.UserInfoes.FirstOrDefault(user => user.Id == key).MapToUserInfo());
     }
 }
 public UserInfo Save(UserInfo item)
 {
     using (var context = new Context.IdentityExDbEntities())
     {
         context.User_Save(item.Id, item.FirstName, item.LastName, item.Email);
         return(item);
     }
 }