public static User ToEntity(this AuthZeroUserModel instance) { return(new User { GlobalId = instance.UserId }); }
//[Authorize] public IHttpActionResult Verification(AuthZeroUserModel model) { _authZeroEmailService.SendVerification(model.UserId); return(Ok()); }
public IHttpActionResult Post(AuthZeroUserModel model) { var result = PerformAction <CreateUserFromAuthZero, User>(new CreateUserFromAuthZero(model.ToEntity())); return(new ActionResultToCreatedHttpActionResult <User, UserModel>(result, x => x.ToModel(), this).Do()); }