Method | Description | |
---|---|---|
ChangeAvatar ( System.Guid accountId, byte avatar, string mimetype ) : bool | ||
ChangeCityAndCountry ( System.Guid id, string city, string country ) : bool | ||
ChangeMail ( System.Guid id, string mail ) : bool | ||
ChangeName ( System.Guid id, string newName ) : bool | ||
ChangePassword ( System.Guid id, string password ) : bool | ||
CheckAccount ( string name ) : |
||
CheckRulesAdmin ( string name ) : bool |
Проверить, если действует админ
|
|
CheckRulesModer ( string name ) : bool |
Проверить, если действует модератер
|
|
CreateAdmin ( |
||
CreateComment ( |
||
CreatePost ( |
||
CreateUserAndAccount ( |
||
DeleteAccount ( string name ) : void | ||
DeleteComment ( System.Guid comid ) : void | ||
GetAccount ( System.Guid accountId ) : |
||
GetAccount ( string name ) : |
||
GetAllAccounts ( ) : List |
||
GetAllRoles ( ) : string[] | ||
GetAllRolesOfAccounts ( ) : string[]>.Dictionary |
||
GetAvatar ( string name ) : |
||
GetComments ( System.Guid postId ) : List |
||
GetIdByName ( string name ) : System.Guid | ||
GetLikedPost ( string modelName ) : List |
||
GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary |
||
GetPost ( System.Guid postid ) : |
||
GetSHA256 ( string source ) : string | ||
GetSourceOfPost ( System.Guid postId ) : |
||
Init ( ) : void |
Инициализация класса логики(Логика будет только одна)
|
|
List30Times ( ) : IEnumerable |
||
List7Times ( ) : IEnumerable |
||
ListOfLatestPosts ( ) : List |
||
ListUsersPosts ( string name ) : IEnumerable |
||
RegisterRoles ( ) : bool | ||
SetLike ( System.Guid postId, System.Guid accountId ) : bool | ||
UpdateRole ( System.Guid accountId, int roleCode ) : bool |
Method | Description | |
---|---|---|
Adapter ( ) : BusinessLogicLayer |
закрытый конструктор X-DDDD
|
public static ChangeAvatar ( System.Guid accountId, byte avatar, string mimetype ) : bool | ||
accountId | System.Guid | |
avatar | byte | |
mimetype | string | |
return | bool |
public static ChangeCityAndCountry ( System.Guid id, string city, string country ) : bool | ||
id | System.Guid | |
city | string | |
country | string | |
return | bool |
public static ChangeMail ( System.Guid id, string mail ) : bool | ||
id | System.Guid | |
string | ||
return | bool |
public static ChangeName ( System.Guid id, string newName ) : bool | ||
id | System.Guid | |
newName | string | |
return | bool |
public static ChangePassword ( System.Guid id, string password ) : bool | ||
id | System.Guid | |
password | string | |
return | bool |
public static CheckAccount ( string name ) : |
||
name | string | |
return |
public static CheckRulesAdmin ( string name ) : bool | ||
name | string | Имя(использовать User.Identity.Name) |
return | bool |
public static CheckRulesModer ( string name ) : bool | ||
name | string | Имя(использовать User.Identity.Name) |
return | bool |
public static CreateAdmin ( |
||
account | ||
return | void |
public static CreateComment ( |
||
comment | ||
return | bool |
public static CreatePost ( |
||
post | ||
return | bool |
public static CreateUserAndAccount ( |
||
account | ||
return | bool |
public static DeleteAccount ( string name ) : void | ||
name | string | |
return | void |
public static DeleteComment ( System.Guid comid ) : void | ||
comid | System.Guid | |
return | void |
public static GetAccount ( System.Guid accountId ) : |
||
accountId | System.Guid | |
return |
public static GetAccount ( string name ) : |
||
name | string | |
return |
public static GetAllRolesOfAccounts ( ) : string[]>.Dictionary |
||
return | string[]>.Dictionary |
public static GetAvatar ( string name ) : |
||
name | string | |
return |
public static GetComments ( System.Guid postId ) : List |
||
postId | System.Guid | |
return | List |
public static GetIdByName ( string name ) : System.Guid | ||
name | string | |
return | System.Guid |
public static GetLikedPost ( string modelName ) : List |
||
modelName | string | |
return | List |
public static GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary |
||
postId | System.Guid | |
accountId | System.Guid | |
return | int>.Dictionary |
public static GetPost ( System.Guid postid ) : |
||
postid | System.Guid | |
return |
public static GetSHA256 ( string source ) : string | ||
source | string | |
return | string |
public static GetSourceOfPost ( System.Guid postId ) : |
||
postId | System.Guid | |
return |
public static ListUsersPosts ( string name ) : IEnumerable |
||
name | string | |
return | IEnumerable |
public static SetLike ( System.Guid postId, System.Guid accountId ) : bool | ||
postId | System.Guid | |
accountId | System.Guid | |
return | bool |
public static UpdateRole ( System.Guid accountId, int roleCode ) : bool | ||
accountId | System.Guid | |
roleCode | int | |
return | bool |