public List <Model.Users.UserInfo> FindAll() { using (var context = new Context.IdentityExDbEntities()) { return(context.UserInfoes.MapToUserInfos()); } }
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); } }