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

Inheritance: Controller
Show file Open project: dv00d00/BinaryStudio.TaskManager

Public Methods

Method 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

Method Description
GetInvitationsAndNewsCount ( ) : System.Web.Mvc.ActionResult
RefuseFromParticipateProject ( int invitationId ) : void
SubmitInvitationInProject ( int invitationId ) : void

Method Details

CreateEventViewModel() public method

public CreateEventViewModel ( News news ) : EventViewModel
news BinaryStudio.TaskManager.Logic.Domain.News
return BinaryStudio.TaskManager.Web.Models.EventViewModel

EventsController() public method

public EventsController ( IUserProcessor userProcessor, INewsRepository newsRepository, INotifier notifier, IProjectProcessor projectProcessor ) : System
userProcessor IUserProcessor
newsRepository INewsRepository
notifier INotifier
projectProcessor IProjectProcessor
return System

GetNews() public method

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

MarkAllUnreadNewsAsReaden() public method

public MarkAllUnreadNewsAsReaden ( ListEventViewModel eventsViewModels ) : System.Web.Mvc.ActionResult
eventsViewModels BinaryStudio.TaskManager.Web.Models.ListEventViewModel
return System.Web.Mvc.ActionResult

MarkAsRead() public method

public MarkAsRead ( int newsId ) : void
newsId int
return void

MyEvents() public method

public MyEvents ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

TakeTimeAgo() public method

public TakeTimeAgo ( System.DateTime time ) : string
time System.DateTime
return string