public IActionResult UpdateProfile([FromBody] Tigerspike.LandmarkRemark.Api.Model.RegistrationInfo registrationInfo) { var username = HttpContext.User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Upn).Value; userService.UpdateUser(new UserInfo { Username = username, Firstname = registrationInfo.FirstName, Lastname = registrationInfo.LastName, }); return(Ok()); }
public void Register(Tigerspike.LandmarkRemark.Api.Model.RegistrationInfo registerationInfo) { this.userService.RegisterUser(new RegistrationInfo(registerationInfo.Username, registerationInfo.Email, registerationInfo.Password)); }