Beispiel #1
0
 public static User ToEntity(this AuthZeroUserModel instance)
 {
     return(new User
     {
         GlobalId = instance.UserId
     });
 }
Beispiel #2
0
        //[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());
        }