C# Класс BinaryStudio.TaskManager.Web.Controllers.EventsController

Наследование: Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetInvitationsAndNewsCount ( ) : System.Web.Mvc.ActionResult
RefuseFromParticipateProject ( int invitationId ) : void
SubmitInvitationInProject ( int invitationId ) : void

Описание методов

CreateEventViewModel() публичный Метод

public CreateEventViewModel ( News news ) : EventViewModel
news BinaryStudio.TaskManager.Logic.Domain.News
Результат BinaryStudio.TaskManager.Web.Models.EventViewModel

EventsController() публичный Метод

public EventsController ( IUserProcessor userProcessor, INewsRepository newsRepository, INotifier notifier, IProjectProcessor projectProcessor ) : System
userProcessor IUserProcessor
newsRepository INewsRepository
notifier INotifier
projectProcessor IProjectProcessor
Результат System

GetNews() публичный Метод

public GetNews ( ListEventViewModel eventsViewModels, int type, int projectId = -1 ) : System.Web.Mvc.ActionResult
eventsViewModels BinaryStudio.TaskManager.Web.Models.ListEventViewModel
type int
projectId int
Результат System.Web.Mvc.ActionResult

MarkAllUnreadNewsAsReaden() публичный Метод

public MarkAllUnreadNewsAsReaden ( ListEventViewModel eventsViewModels ) : System.Web.Mvc.ActionResult
eventsViewModels BinaryStudio.TaskManager.Web.Models.ListEventViewModel
Результат System.Web.Mvc.ActionResult

MarkAsRead() публичный Метод

public MarkAsRead ( int newsId ) : void
newsId int
Результат void

MyEvents() публичный Метод

public MyEvents ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

TakeTimeAgo() публичный Метод

public TakeTimeAgo ( System.DateTime time ) : string
time System.DateTime
Результат string