Ejemplo n.º 1
0
 public static CurrentUserState OnSignIn(CurrentUserState state, SignInAction action)
 {
     return(state with
     {
         User = action.User
     });
 }
Ejemplo n.º 2
0
 public ActionResult SignIn(SignInAction ActionCmd)
 {
     return(JsonExpando(ActionCmd.Execute(CurrentObjectContext)));
 }
Ejemplo n.º 3
0
 // ReSharper disable once UnusedMember.Global
 public static State ReduceSignInAction(State state, SignInAction action) => new State(action.BearerToken, action.UserName);
Ejemplo n.º 4
0
 public async Task <ActionResult> SignIn(SignInAction ActionCmd)
 {
     return(JsonExpando(await ActionCmd.Execute(CurrentObjectContext)));
 }