C# Class Host.Repository.BlogRepository

Inheritance: IBlogRepository
Mostrar archivo Open project: rmichela/EmberDataAdapter

Public Methods

Method Description
AddPost ( Post newPost ) : void
DeletePost ( int id ) : void
GetComment ( int id ) : Comment
GetComments ( int postId ) : IEnumerable
GetPost ( int id ) : Post
GetPosts ( ) : IEnumerable
UpdatePost ( int id, Post updatedPost ) : void

Method Details

AddPost() public method

public AddPost ( Post newPost ) : void
newPost Host.Models.Post
return void

DeletePost() public method

public DeletePost ( int id ) : void
id int
return void

GetComment() public method

public GetComment ( int id ) : Comment
id int
return Host.Models.Comment

GetComments() public method

public GetComments ( int postId ) : IEnumerable
postId int
return IEnumerable

GetPost() public method

public GetPost ( int id ) : Post
id int
return Host.Models.Post

GetPosts() public method

public GetPosts ( ) : IEnumerable
return IEnumerable

UpdatePost() public method

public UpdatePost ( int id, Post updatedPost ) : void
id int
updatedPost Host.Models.Post
return void