private static User CreateUserModelFromOpenAuthReponse(IAuthenticationResponse response, string identifier) { var simpleReg = response.GetExtension<ClaimsResponse>(); var model = new ExTracker.Core.DataModel.User(); model.OpenId = identifier; if (!string.IsNullOrEmpty(simpleReg.Email)) model.EmailAddress = simpleReg.Email; if (!string.IsNullOrEmpty(simpleReg.FullName)) model.Name = simpleReg.FullName; if (!string.IsNullOrEmpty(simpleReg.Nickname)) model.UserName = simpleReg.Nickname; return model; }
public InsertUserCommand(User user) { User = user; }