Ejemplo n.º 1
0
 public static User ToEntity(this AuthZeroUserModel instance)
 {
     return(new User
     {
         GlobalId = instance.UserId
     });
 }
Ejemplo n.º 2
0
        //[Authorize]
        public IHttpActionResult Verification(AuthZeroUserModel model)
        {
            _authZeroEmailService.SendVerification(model.UserId);

            return(Ok());
        }
Ejemplo n.º 3
0
        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());
        }