Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/10 10:48:24 (13 years ago)
Author:
mjesner
Message:

#1196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UserManagement/HeuristicLab.Services.Authentication/AuthenticationService.cs

    r4926 r4962  
    5252        }
    5353
    54         public bool InsertUser(User user)
     54        public Guid InsertUser(User user)
    5555        {
    5656            if (user != null)
     
    7171                    catch (Exception ex)
    7272                    {
    73                         return false;
    74                     }
    75 
    76                     return true;
    77 
    78 
    79                 }
    80 
    81             }
    82             return false;
     73                        return Guid.Empty;
     74                    }
     75
     76                    return user.Id;
     77
     78
     79                }
     80
     81            }
     82            return Guid.Empty;
    8383        }
    8484
     
    170170        }
    171171
    172         public bool InsertRole(Role role)
     172        public Guid InsertRole(Role role)
    173173        {
    174174
     
    188188                    catch (Exception ex)
    189189                    {
    190                         return false;
    191                     }
    192 
    193                     return true;
    194                 }
    195 
    196             }
    197             return false;
     190                        return Guid.Empty;
     191                    }
     192
     193                    return role.Id;
     194                }
     195
     196            }
     197            return Guid.Empty;
    198198        }
    199199
     
    353353        #region Application
    354354
    355         public bool InsertApplication(Application application)
     355        public Guid InsertApplication(Application application)
    356356        {
    357357            if (application != null)
     
    370370                    catch (Exception ex)
    371371                    {
    372                         return false;
    373                     }
    374 
    375                     return true;
    376 
    377                 }
    378 
    379             }
    380             return false;
     372                        return Guid.Empty;
     373                    }
     374
     375                    return application.Id;
     376
     377                }
     378
     379            }
     380            return Guid.Empty;
    381381        }
    382382
Note: See TracChangeset for help on using the changeset viewer.