C# 클래스 BusinessLogicLayer.Logic

상속: IBusinessLogicLayer
파일 보기 프로젝트 열기: sstuteam/Gimble

공개 메소드들

메소드 설명
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