C# Class RibbitMvc.Services.UserService

Inheritance: IUserService
Afficher le fichier Open project: dato1357/Social-Network Class Usage Examples

Méthodes publiques

Méthode Description
All ( bool includeProfile ) : IEnumerable
Create ( string username, string password, UserProfile profile, System.DateTime created = null ) : User
Follow ( string username, User follower ) : void
GetAllFor ( int id ) : User
GetAllFor ( string username ) : User
GetBy ( int id ) : User
GetBy ( string username ) : User
Unfollow ( string username, User follower ) : void
UserService ( IContext context ) : RibbitMvc.Data

Method Details

All() public méthode

public All ( bool includeProfile ) : IEnumerable
includeProfile bool
Résultat IEnumerable

Create() public méthode

public Create ( string username, string password, UserProfile profile, System.DateTime created = null ) : User
username string
password string
profile RibbitMvc.Models.UserProfile
created System.DateTime
Résultat RibbitMvc.Models.User

Follow() public méthode

public Follow ( string username, User follower ) : void
username string
follower RibbitMvc.Models.User
Résultat void

GetAllFor() public méthode

public GetAllFor ( int id ) : User
id int
Résultat RibbitMvc.Models.User

GetAllFor() public méthode

public GetAllFor ( string username ) : User
username string
Résultat RibbitMvc.Models.User

GetBy() public méthode

public GetBy ( int id ) : User
id int
Résultat RibbitMvc.Models.User

GetBy() public méthode

public GetBy ( string username ) : User
username string
Résultat RibbitMvc.Models.User

Unfollow() public méthode

public Unfollow ( string username, User follower ) : void
username string
follower RibbitMvc.Models.User
Résultat void

UserService() public méthode

public UserService ( IContext context ) : RibbitMvc.Data
context IContext
Résultat RibbitMvc.Data