C# Class Tigwi.UI.Controllers.AccountController

Inheritance: HomeController
Datei anzeigen Open project: ismaelbelghiti/Tigwi

Public Methods

Method Description
AccountController ( IStorage storage ) : System
Create ( ) : System.Web.Mvc.ActionResult

Shows a form for creating a new account associated with the active user.

Edit ( ) : System.Web.Mvc.ActionResult

Show a form to edit the given account. If no account is given, edit the active account instead.

Followers ( ) : System.Web.Mvc.ActionResult

Shows all the people that follow a list owned by the current account.

Following ( System.Guid id ) : System.Web.Mvc.ActionResult

Show all the people an account is following.

Search ( string searchString ) : System.Web.Mvc.ActionResult
Show ( string accountName ) : System.Web.Mvc.ActionResult

Shows a page listing all the posts of the account.

UnFollow ( ) : System.Web.Mvc.ActionResult

Makes the active account unfollow the given account. Idempotent.

Private Methods

Method Description
AccountExists ( string account ) : System.Web.Mvc.ActionResult
AutoComplete ( string partialAccountName ) : System.Web.Mvc.ActionResult
Create ( AccountCreationViewModel accountCreation ) : System.Web.Mvc.ActionResult
Delete ( System.Guid id ) : System.Web.Mvc.ActionResult
Edit ( AccountEditViewModel editAccount ) : System.Web.Mvc.ActionResult
Follow ( System.Guid id ) : System.Web.Mvc.ActionResult
GetAccount ( System.Guid accountId ) : System.Web.Mvc.ActionResult
IsFollowed ( System.Guid listId ) : System.Web.Mvc.ActionResult
List ( ) : System.Web.Mvc.ActionResult
MakeActive ( string accountName ) : System.Web.Mvc.ActionResult
Remove ( System.Guid id ) : System.Web.Mvc.ActionResult
Timeline ( ) : System.Web.Mvc.ActionResult

Method Details

AccountController() public method

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

Create() public method

Shows a form for creating a new account associated with the active user.
public Create ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Edit() public method

Show a form to edit the given account. If no account is given, edit the active account instead.
public Edit ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Followers() public method

Shows all the people that follow a list owned by the current account.
public Followers ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Following() public method

Show all the people an account is following.
public Following ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

Search() public method

public Search ( string searchString ) : System.Web.Mvc.ActionResult
searchString string
return System.Web.Mvc.ActionResult

Show() public method

Shows a page listing all the posts of the account.
public Show ( string accountName ) : System.Web.Mvc.ActionResult
accountName string
return System.Web.Mvc.ActionResult

UnFollow() public method

Makes the active account unfollow the given account. Idempotent.
public UnFollow ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult