/// <summary> /// Gets a/an GroupPrivilege by Id. /// </summary> /// <param name="entity"></param> /// <returns>Returns the GroupPrivilege that was found with matching Id.</returns> public GroupPrivilege GetGroupPrivilegeById(int id) { try { return(repo.Single <GroupPrivilege>(e => e.Id == id)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Gets a/an OrganizationPrivilege by Id. /// </summary> /// <param name="entity"></param> /// <returns>Returns the OrganizationPrivilege that was found with matching Id.</returns> public OrganizationPrivilege GetOrganizationPrivilegeById(int id) { try { return repo.Single<OrganizationPrivilege>(e => e.Id == id); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Gets a/an User by Id. /// </summary> /// <param name="entity"></param> /// <returns>Returns the User that was found with matching Id.</returns> public User GetUserById(System.Guid id) { try { return(repo.Single <User>(e => e.Id == id)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Gets a/an UserGroup by Id. /// </summary> /// <param name="entity"></param> /// <returns>Returns the UserGroup that was found with matching Id.</returns> public UserGroup GetUserGroupById(int id) { try { return(repo.Single <UserGroup>(e => e.Id == id)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Gets a/an Organization by Id. /// </summary> /// <param name="entity"></param> /// <returns>Returns the Organization that was found with matching Id.</returns> public Organization GetOrganizationById(int id) { try { return(repo.Single <Organization>(e => e.Id == id)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }
/// <summary> /// Gets a/an LogEvent by Id. /// </summary> /// <param name="entity"></param> /// <returns>Returns the LogEvent that was found with matching Id.</returns> public LogEvent GetLogEventById(int id) { try { return(repo.Single <LogEvent>(e => e.Id == id)); } catch (Exception ex) { repo.LogError(ex); throw ex; } }