C# Class BinaryStudio.TaskManager.Web.Controllers.EventsController

Inheritance: Controller
Afficher le fichier Open project: dv00d00/BinaryStudio.TaskManager

Méthodes publiques

Méthode Description
CreateEventViewModel ( News news ) : EventViewModel
EventsController ( IUserProcessor userProcessor, INewsRepository newsRepository, INotifier notifier, IProjectProcessor projectProcessor ) : System
GetNews ( ListEventViewModel eventsViewModels, int type, int projectId = -1 ) : System.Web.Mvc.ActionResult
MarkAllUnreadNewsAsReaden ( ListEventViewModel eventsViewModels ) : System.Web.Mvc.ActionResult
MarkAsRead ( int newsId ) : void
MyEvents ( ) : System.Web.Mvc.ActionResult
TakeTimeAgo ( System.DateTime time ) : string

Private Methods

Méthode Description
GetInvitationsAndNewsCount ( ) : System.Web.Mvc.ActionResult
RefuseFromParticipateProject ( int invitationId ) : void
SubmitInvitationInProject ( int invitationId ) : void

Method Details

CreateEventViewModel() public méthode

public CreateEventViewModel ( News news ) : EventViewModel
news BinaryStudio.TaskManager.Logic.Domain.News
Résultat BinaryStudio.TaskManager.Web.Models.EventViewModel

EventsController() public méthode

public EventsController ( IUserProcessor userProcessor, INewsRepository newsRepository, INotifier notifier, IProjectProcessor projectProcessor ) : System
userProcessor IUserProcessor
newsRepository INewsRepository
notifier INotifier
projectProcessor IProjectProcessor
Résultat System

GetNews() public méthode

public GetNews ( ListEventViewModel eventsViewModels, int type, int projectId = -1 ) : System.Web.Mvc.ActionResult
eventsViewModels BinaryStudio.TaskManager.Web.Models.ListEventViewModel
type int
projectId int
Résultat System.Web.Mvc.ActionResult

MarkAllUnreadNewsAsReaden() public méthode

public MarkAllUnreadNewsAsReaden ( ListEventViewModel eventsViewModels ) : System.Web.Mvc.ActionResult
eventsViewModels BinaryStudio.TaskManager.Web.Models.ListEventViewModel
Résultat System.Web.Mvc.ActionResult

MarkAsRead() public méthode

public MarkAsRead ( int newsId ) : void
newsId int
Résultat void

MyEvents() public méthode

public MyEvents ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

TakeTimeAgo() public méthode

public TakeTimeAgo ( System.DateTime time ) : string
time System.DateTime
Résultat string