C# Class RibbitMvc.Services.UserService

Inheritance: IUserService
Mostrar archivo Open project: dato1357/Social-Network Class Usage Examples

Public Methods

Method 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 method

public All ( bool includeProfile ) : IEnumerable
includeProfile bool
return IEnumerable

Create() public method

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

Follow() public method

public Follow ( string username, User follower ) : void
username string
follower RibbitMvc.Models.User
return void

GetAllFor() public method

public GetAllFor ( int id ) : User
id int
return RibbitMvc.Models.User

GetAllFor() public method

public GetAllFor ( string username ) : User
username string
return RibbitMvc.Models.User

GetBy() public method

public GetBy ( int id ) : User
id int
return RibbitMvc.Models.User

GetBy() public method

public GetBy ( string username ) : User
username string
return RibbitMvc.Models.User

Unfollow() public method

public Unfollow ( string username, User follower ) : void
username string
follower RibbitMvc.Models.User
return void

UserService() public method

public UserService ( IContext context ) : RibbitMvc.Data
context IContext
return RibbitMvc.Data