C# Class Tigwi.UI.Controllers.PostController

Inheritance: HomeController
Datei anzeigen Open project: ismaelbelghiti/Tigwi

Public Methods

Method Description
Delete ( ) : System.Web.Mvc.ActionResult

Deletes a post.

PostController ( IStorage storage ) : System
Reply ( ) : System.Web.Mvc.ActionResult

Reply to a post. The difference with Write is that it could be better integrated in the UI (see twitter).

Repost ( ) : System.Web.Mvc.ActionResult

Repost something poster by another user (Retweets in Twitter).

Tag ( System.Guid postId ) : System.Web.Mvc.ActionResult

Tags (favorites) a post.

UnTag ( ) : System.Web.Mvc.ActionResult

Untag (unfavorites) a post.

Private Methods

Method Description
Write ( WritePostViewModel post ) : System.Web.Mvc.ActionResult

Method Details

Delete() public method

Deletes a post.
public Delete ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

PostController() public method

public PostController ( IStorage storage ) : System
storage IStorage
return System

Reply() public method

Reply to a post. The difference with Write is that it could be better integrated in the UI (see twitter).
public Reply ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Repost() public method

Repost something poster by another user (Retweets in Twitter).
public Repost ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Tag() public method

Tags (favorites) a post.
public Tag ( System.Guid postId ) : System.Web.Mvc.ActionResult
postId System.Guid
return System.Web.Mvc.ActionResult

UnTag() public method

Untag (unfavorites) a post.
public UnTag ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult