C# Класс FSNEP.Controllers.UserAdministrationController

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

Открытые свойства

Свойство Тип Описание
MessageGateway IMessageGateway
UserBLL IUserBLL

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

Метод Описание
Create ( ) : System.Web.Mvc.ActionResult

Create the User View Model

Emulate ( string id ) : void
Modify ( string id ) : System.Web.Mvc.ActionResult

Returns the user object indentified by the given userid. If there is no user, return just the other information needed for creating a new user.

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

Maps the guid user ident to a username ident

UserAdministrationController ( IUserBLL userBLL, IMessageGateway messageGateway ) : System

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

Метод Описание
Create ( CreateUserViewModel model, List roleList ) : System.Web.Mvc.ActionResult
EnsureProperRoles ( ICollection roles, User user ) : void

Bus. rules: If the fundtype starts with State, the user much have the timesheet role. If the user has subordinates, they must be a supervisor

List ( int projectId ) : System.Web.Mvc.ActionResult
Modify ( User user, List roleList, string id ) : System.Web.Mvc.ActionResult
ResetPassword ( string id ) : System.Web.Mvc.RedirectToRouteResult
TransferValuesTo ( User userToUpdate, User user ) : void

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

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

Create the User View Model
public Create ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

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

public Emulate ( string id ) : void
id string
Результат void

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

Returns the user object indentified by the given userid. If there is no user, return just the other information needed for creating a new user.
public Modify ( string id ) : System.Web.Mvc.ActionResult
id string the userid/username
Результат System.Web.Mvc.ActionResult

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

Maps the guid user ident to a username ident
public ModifyById ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
Результат System.Web.Mvc.ActionResult

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

public UserAdministrationController ( IUserBLL userBLL, IMessageGateway messageGateway ) : System
userBLL IUserBLL
messageGateway IMessageGateway
Результат System

Описание свойств

MessageGateway публичное свойство

public IMessageGateway MessageGateway
Результат IMessageGateway

UserBLL публичное свойство

public IUserBLL UserBLL
Результат IUserBLL