C# Класс BusinessLogicLayer.Logic

Наследование: IBusinessLogicLayer
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateAccount ( Account account ) : bool
CreateAdmin ( Account account ) : void
CreateComment ( Comment comment ) : bool
CreatePost ( Post post ) : bool
DeleteAccount ( string name ) : bool
DeleteComment ( System.Guid comid ) : void
Get30DaysPopular ( ) : IEnumerable
Get7DaysPopular ( ) : IEnumerable
GetAccountById ( System.Guid accountId ) : Account
GetAccountByLogin ( string name, bool checking ) : Account
GetAllAccounts ( ) : IEnumerable
GetAllRoles ( ) : string[]
GetAvatar ( string name ) : Photo
GetBookmarks ( string modelName ) : List
GetByTag ( string currentTag ) : IEnumerable
GetComments ( System.Guid postId ) : List
GetIdByName ( string login ) : System.Guid
GetLatestPosts ( ) : IEnumerable
GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
GetPost ( System.Guid postid ) : Post
GetPostsSource ( System.Guid postId ) : Photo
GetRolesOfAccounts ( ) : string[]>.Dictionary
GetSHA256 ( string password ) : string
GetUserById ( System.Guid id ) : Account
GetUsersPosts ( string currentUser ) : IEnumerable
RegisterRoles ( ) : int
SetLike ( System.Guid postId, System.Guid accountId ) : bool
UpdateAvatar ( System.Guid accountId, byte Avatar, string mimetype ) : bool
UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
UpdateMail ( System.Guid id, string newMail ) : bool
UpdateName ( System.Guid id, string newName ) : bool
UpdatePassword ( System.Guid id, string password ) : bool
UpdateRole ( System.Guid accountId, int roleCode ) : bool

Описание методов

CreateAccount() публичный Метод

public CreateAccount ( Account account ) : bool
account Entities.Account
Результат bool

CreateAdmin() публичный Метод

public CreateAdmin ( Account account ) : void
account Entities.Account
Результат void

CreateComment() публичный Метод

public CreateComment ( Comment comment ) : bool
comment Comment
Результат bool

CreatePost() публичный Метод

public CreatePost ( Post post ) : bool
post Entities.Post
Результат bool

DeleteAccount() публичный Метод

public DeleteAccount ( string name ) : bool
name string
Результат bool

DeleteComment() публичный Метод

public DeleteComment ( System.Guid comid ) : void
comid System.Guid
Результат void

Get30DaysPopular() публичный Метод

public Get30DaysPopular ( ) : IEnumerable
Результат IEnumerable

Get7DaysPopular() публичный Метод

public Get7DaysPopular ( ) : IEnumerable
Результат IEnumerable

GetAccountById() публичный Метод

public GetAccountById ( System.Guid accountId ) : Account
accountId System.Guid
Результат Entities.Account

GetAccountByLogin() публичный Метод

public GetAccountByLogin ( string name, bool checking ) : Account
name string
checking bool
Результат Entities.Account

GetAllAccounts() публичный Метод

public GetAllAccounts ( ) : IEnumerable
Результат IEnumerable

GetAllRoles() публичный Метод

public GetAllRoles ( ) : string[]
Результат string[]

GetAvatar() публичный Метод

public GetAvatar ( string name ) : Photo
name string
Результат Photo

GetBookmarks() публичный Метод

public GetBookmarks ( string modelName ) : List
modelName string
Результат List

GetByTag() публичный Метод

public GetByTag ( string currentTag ) : IEnumerable
currentTag string
Результат IEnumerable

GetComments() публичный Метод

public GetComments ( System.Guid postId ) : List
postId System.Guid
Результат List

GetIdByName() публичный Метод

public GetIdByName ( string login ) : System.Guid
login string
Результат System.Guid

GetLatestPosts() публичный Метод

public GetLatestPosts ( ) : IEnumerable
Результат IEnumerable

GetLikes() публичный Метод

public GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
postId System.Guid
accountId System.Guid
Результат int>.Dictionary

GetPost() публичный Метод

public GetPost ( System.Guid postid ) : Post
postid System.Guid
Результат Entities.Post

GetPostsSource() публичный Метод

public GetPostsSource ( System.Guid postId ) : Photo
postId System.Guid
Результат Photo

GetRolesOfAccounts() публичный Метод

public GetRolesOfAccounts ( ) : string[]>.Dictionary
Результат string[]>.Dictionary

GetSHA256() публичный Метод

public GetSHA256 ( string password ) : string
password string
Результат string

GetUserById() публичный Метод

public GetUserById ( System.Guid id ) : Account
id System.Guid
Результат Entities.Account

GetUsersPosts() публичный Метод

public GetUsersPosts ( string currentUser ) : IEnumerable
currentUser string
Результат IEnumerable

RegisterRoles() публичный Метод

public RegisterRoles ( ) : int
Результат int

SetLike() публичный Метод

public SetLike ( System.Guid postId, System.Guid accountId ) : bool
postId System.Guid
accountId System.Guid
Результат bool

UpdateAvatar() публичный Метод

public UpdateAvatar ( System.Guid accountId, byte Avatar, string mimetype ) : bool
accountId System.Guid
Avatar byte
mimetype string
Результат bool

UpdateCityAndCountry() публичный Метод

public UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
id System.Guid
newCity string
newCountry string
Результат bool

UpdateMail() публичный Метод

public UpdateMail ( System.Guid id, string newMail ) : bool
id System.Guid
newMail string
Результат bool

UpdateName() публичный Метод

public UpdateName ( System.Guid id, string newName ) : bool
id System.Guid
newName string
Результат bool

UpdatePassword() публичный Метод

public UpdatePassword ( System.Guid id, string password ) : bool
id System.Guid
password string
Результат bool

UpdateRole() публичный Метод

public UpdateRole ( System.Guid accountId, int roleCode ) : bool
accountId System.Guid
roleCode int
Результат bool