C# 클래스 GridMoment.UI.WebSite.Controllers.Adapter

Класс для связывания контроллеров и логики приложения.
파일 보기 프로젝트 열기: sstuteam/Gimble

공개 메소드들

메소드 설명
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 ) : Account
CheckRulesAdmin ( string name ) : bool

Проверить, если действует админ

CheckRulesModer ( string name ) : bool

Проверить, если действует модератер

CreateAdmin ( Account account ) : void
CreateComment ( CommentViewModel comment ) : bool
CreatePost ( Post post ) : bool
CreateUserAndAccount ( Account account ) : bool
DeleteAccount ( string name ) : void
DeleteComment ( System.Guid comid ) : void
GetAccount ( System.Guid accountId ) : Account
GetAccount ( string name ) : Account
GetAllAccounts ( ) : List
GetAllRoles ( ) : string[]
GetAllRolesOfAccounts ( ) : string[]>.Dictionary
GetAvatar ( string name ) : Photo
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 ) : Post
GetSHA256 ( string source ) : string
GetSourceOfPost ( System.Guid postId ) : Photo
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

비공개 메소드들

메소드 설명
Adapter ( ) : BusinessLogicLayer

закрытый конструктор X-DDDD

메소드 상세

ChangeAvatar() 공개 정적인 메소드

public static ChangeAvatar ( System.Guid accountId, byte avatar, string mimetype ) : bool
accountId System.Guid
avatar byte
mimetype string
리턴 bool

ChangeCityAndCountry() 공개 정적인 메소드

public static ChangeCityAndCountry ( System.Guid id, string city, string country ) : bool
id System.Guid
city string
country string
리턴 bool

ChangeMail() 공개 정적인 메소드

public static ChangeMail ( System.Guid id, string mail ) : bool
id System.Guid
mail string
리턴 bool

ChangeName() 공개 정적인 메소드

public static ChangeName ( System.Guid id, string newName ) : bool
id System.Guid
newName string
리턴 bool

ChangePassword() 공개 정적인 메소드

public static ChangePassword ( System.Guid id, string password ) : bool
id System.Guid
password string
리턴 bool

CheckAccount() 공개 정적인 메소드

public static CheckAccount ( string name ) : Account
name string
리턴 Entities.Account

CheckRulesAdmin() 공개 정적인 메소드

Проверить, если действует админ
public static CheckRulesAdmin ( string name ) : bool
name string Имя(использовать User.Identity.Name)
리턴 bool

CheckRulesModer() 공개 정적인 메소드

Проверить, если действует модератер
public static CheckRulesModer ( string name ) : bool
name string Имя(использовать User.Identity.Name)
리턴 bool

CreateAdmin() 공개 정적인 메소드

public static CreateAdmin ( Account account ) : void
account Entities.Account
리턴 void

CreateComment() 공개 정적인 메소드

public static CreateComment ( CommentViewModel comment ) : bool
comment GridMoment.UI.WebSite.Models.CommentViewModel
리턴 bool

CreatePost() 공개 정적인 메소드

public static CreatePost ( Post post ) : bool
post Entities.Post
리턴 bool

CreateUserAndAccount() 공개 정적인 메소드

public static CreateUserAndAccount ( Account account ) : bool
account Entities.Account
리턴 bool

DeleteAccount() 공개 정적인 메소드

public static DeleteAccount ( string name ) : void
name string
리턴 void

DeleteComment() 공개 정적인 메소드

public static DeleteComment ( System.Guid comid ) : void
comid System.Guid
리턴 void

GetAccount() 공개 정적인 메소드

public static GetAccount ( System.Guid accountId ) : Account
accountId System.Guid
리턴 Entities.Account

GetAccount() 공개 정적인 메소드

public static GetAccount ( string name ) : Account
name string
리턴 Entities.Account

GetAllAccounts() 공개 정적인 메소드

public static GetAllAccounts ( ) : List
리턴 List

GetAllRoles() 공개 정적인 메소드

public static GetAllRoles ( ) : string[]
리턴 string[]

GetAllRolesOfAccounts() 공개 정적인 메소드

public static GetAllRolesOfAccounts ( ) : string[]>.Dictionary
리턴 string[]>.Dictionary

GetAvatar() 공개 정적인 메소드

public static GetAvatar ( string name ) : Photo
name string
리턴 Entities.Photo

GetComments() 공개 정적인 메소드

public static GetComments ( System.Guid postId ) : List
postId System.Guid
리턴 List

GetIdByName() 공개 정적인 메소드

public static GetIdByName ( string name ) : System.Guid
name string
리턴 System.Guid

GetLikedPost() 공개 정적인 메소드

public static GetLikedPost ( string modelName ) : List
modelName string
리턴 List

GetLikes() 공개 정적인 메소드

public static GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
postId System.Guid
accountId System.Guid
리턴 int>.Dictionary

GetPost() 공개 정적인 메소드

public static GetPost ( System.Guid postid ) : Post
postid System.Guid
리턴 Entities.Post

GetSHA256() 공개 정적인 메소드

public static GetSHA256 ( string source ) : string
source string
리턴 string

GetSourceOfPost() 공개 정적인 메소드

public static GetSourceOfPost ( System.Guid postId ) : Photo
postId System.Guid
리턴 Entities.Photo

Init() 공개 정적인 메소드

Инициализация класса логики(Логика будет только одна)
public static Init ( ) : void
리턴 void

List30Times() 공개 정적인 메소드

public static List30Times ( ) : IEnumerable
리턴 IEnumerable

List7Times() 공개 정적인 메소드

public static List7Times ( ) : IEnumerable
리턴 IEnumerable

ListOfLatestPosts() 공개 정적인 메소드

public static ListOfLatestPosts ( ) : List
리턴 List

ListUsersPosts() 공개 정적인 메소드

public static ListUsersPosts ( string name ) : IEnumerable
name string
리턴 IEnumerable

RegisterRoles() 공개 정적인 메소드

public static RegisterRoles ( ) : bool
리턴 bool

SetLike() 공개 정적인 메소드

public static SetLike ( System.Guid postId, System.Guid accountId ) : bool
postId System.Guid
accountId System.Guid
리턴 bool

UpdateRole() 공개 정적인 메소드

public static UpdateRole ( System.Guid accountId, int roleCode ) : bool
accountId System.Guid
roleCode int
리턴 bool