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