C# Class LearnLanguages.Business.BusinessHelper

显示文件 Open project: ibgib/LearnLanguages

Public Methods

Method Description
EncodeTitlesAndIdsAsString ( ICollection collection ) : string

This takes a collection of MLT Dtos and puts their titles and ids into a delimited string value to be stored in a single string. I'm doing this because the

ExtractPhrase ( TranslationEdit translation, string languageText ) : PhraseEdit

Extracts the phrase (if found) in the given language.

GetCurrentUserId ( ) : System.Guid
GetCurrentUsername ( ) : string

Method Details

EncodeTitlesAndIdsAsString() public static method

This takes a collection of MLT Dtos and puts their titles and ids into a delimited string value to be stored in a single string. I'm doing this because the
public static EncodeTitlesAndIdsAsString ( ICollection collection ) : string
collection ICollection
return string

ExtractPhrase() public static method

Extracts the phrase (if found) in the given language.
public static ExtractPhrase ( TranslationEdit translation, string languageText ) : PhraseEdit
translation TranslationEdit
languageText string
return PhraseEdit

GetCurrentUserId() public static method

public static GetCurrentUserId ( ) : System.Guid
return System.Guid

GetCurrentUsername() public static method

public static GetCurrentUsername ( ) : string
return string