Beispiel #1
0
 public static AuthToken AuthTokenVMToAuthToken(AuthTokenVM authTokenVM)
 {
     var authToken = new AuthToken()
     {
         Expiration = authTokenVM.Expiration,
         Token = authTokenVM.Token,
         ApiUser = authTokenVM.ApiUser
     };
     return authToken;
 }
 public void AddAuthToken(AuthToken authToken)
 {
     _context.AuthTokens.Add(authToken);
 }