/// <summary> /// Creates a/an Privilege. /// </summary> /// <param name="entity"></param> /// <returns>Returns the Privilege that was created in the database.</returns> public Privilege CreatePrivilege(Privilege entity) { try { return(repo.Create <Privilege>(entity)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Creates a/an Group. /// </summary> /// <param name="entity"></param> /// <returns>Returns the Group that was created in the database.</returns> public Group CreateGroup(Group entity) { try { return(repo.Create <Group>(entity)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Creates a/an OrganizationPrivilege. /// </summary> /// <param name="entity"></param> /// <returns>Returns the OrganizationPrivilege that was created in the database.</returns> public OrganizationPrivilege CreateOrganizationPrivilege(OrganizationPrivilege entity) { try { return repo.Create<OrganizationPrivilege>(entity); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Creates a/an User. /// </summary> /// <param name="entity"></param> /// <returns>Returns the User that was created in the database.</returns> public User CreateUser(User entity) { try { return(repo.Create <User>(entity)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Creates a/an UserOrganization. /// </summary> /// <param name="entity"></param> /// <returns>Returns the UserOrganization that was created in the database.</returns> public UserOrganization CreateUserOrganization(UserOrganization entity) { try { return(repo.Create <UserOrganization>(entity)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Creates a/an Application. /// </summary> /// <param name="entity"></param> /// <returns>Returns the Application that was created in the database.</returns> public Application CreateApplication(Application entity) { try { return(repo.Create <Application>(entity)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Creates a/an LogEvent. /// </summary> /// <param name="entity"></param> /// <returns>Returns the LogEvent that was created in the database.</returns> public LogEvent CreateLogEvent(LogEvent entity) { try { return(repo.Create <LogEvent>(entity)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }