C# Class BAL.Manager.UserManager

Inheritance: BAL.Manager.BaseManager, IUserManager
Exibir arquivo Open project: CH033dotNET/Taxi Class Usage Examples

Public Methods

Method Description
AddUser ( RegistrationModelDTO user ) : UserDTO
CalculateUserRating ( int id ) : void
ChangeUserParameters ( UserDTO user ) : void
DeleteUser ( int userId ) : void
GerRoleForUser ( RegistrationModelDTO user ) : Role
GerRoleForUser ( UserDTO user ) : Role
GetByEmail ( string email, string password ) : UserDTO
GetById ( int id ) : UserDTO
GetByUserName ( string login, string password ) : UserDTO
GetCurrentDrivers ( int id ) : List
GetCurrentDriversLastMonth ( int id ) : List
GetDrivers ( ) : List
GetDriversExceptCurrent ( int id ) : List
GetDriversWithOrders ( ) : IEnumerable
GetDriversWithOrdersLastMonth ( ) : IEnumerable
GetQueryableDrivers ( ) : IQueryable
GetUserPage ( string searchString, int page, int pageSize, int roleId ) : PagerDTO
GetUsers ( ) : IEnumerable
GetVIPClients ( ) : IQueryable
IfEmailExists ( string email ) : bool
IfUserNameExists ( string userName ) : bool
InsertUser ( UserDTO user ) : UserDTO
IsAdministratorById ( int id ) : bool
IsUserNameCorrect ( string name ) : bool
SetClientBonus ( int userId, double bonus, double paidByBonus ) : void
SetVIPStatus ( int userId ) : void
UpdatePassword ( string login, string password ) : void
UpdateUser ( UserDTO user ) : UserDTO
UserManager ( IUnitOfWork uOW ) : Common.System
UserValidation ( UserDTO user, List msgs ) : bool
deleteVIPById ( int id ) : void

Method Details

AddUser() public method

public AddUser ( RegistrationModelDTO user ) : UserDTO
user Model.DTO.RegistrationModelDTO
return UserDTO

CalculateUserRating() public method

public CalculateUserRating ( int id ) : void
id int
return void

ChangeUserParameters() public method

public ChangeUserParameters ( UserDTO user ) : void
user UserDTO
return void

DeleteUser() public method

public DeleteUser ( int userId ) : void
userId int
return void

GerRoleForUser() public method

public GerRoleForUser ( RegistrationModelDTO user ) : Role
user Model.DTO.RegistrationModelDTO
return Role

GerRoleForUser() public method

public GerRoleForUser ( UserDTO user ) : Role
user UserDTO
return Role

GetByEmail() public method

public GetByEmail ( string email, string password ) : UserDTO
email string
password string
return UserDTO

GetById() public method

public GetById ( int id ) : UserDTO
id int
return UserDTO

GetByUserName() public method

public GetByUserName ( string login, string password ) : UserDTO
login string
password string
return UserDTO

GetCurrentDrivers() public method

public GetCurrentDrivers ( int id ) : List
id int
return List

GetCurrentDriversLastMonth() public method

public GetCurrentDriversLastMonth ( int id ) : List
id int
return List

GetDrivers() public method

public GetDrivers ( ) : List
return List

GetDriversExceptCurrent() public method

public GetDriversExceptCurrent ( int id ) : List
id int
return List

GetDriversWithOrders() public method

public GetDriversWithOrders ( ) : IEnumerable
return IEnumerable

GetDriversWithOrdersLastMonth() public method

public GetDriversWithOrdersLastMonth ( ) : IEnumerable
return IEnumerable

GetQueryableDrivers() public method

public GetQueryableDrivers ( ) : IQueryable
return IQueryable

GetUserPage() public method

public GetUserPage ( string searchString, int page, int pageSize, int roleId ) : PagerDTO
searchString string
page int
pageSize int
roleId int
return PagerDTO

GetUsers() public method

public GetUsers ( ) : IEnumerable
return IEnumerable

GetVIPClients() public method

public GetVIPClients ( ) : IQueryable
return IQueryable

IfEmailExists() public method

public IfEmailExists ( string email ) : bool
email string
return bool

IfUserNameExists() public method

public IfUserNameExists ( string userName ) : bool
userName string
return bool

InsertUser() public method

public InsertUser ( UserDTO user ) : UserDTO
user UserDTO
return UserDTO

IsAdministratorById() public method

public IsAdministratorById ( int id ) : bool
id int
return bool

IsUserNameCorrect() public method

public IsUserNameCorrect ( string name ) : bool
name string
return bool

SetClientBonus() public method

public SetClientBonus ( int userId, double bonus, double paidByBonus ) : void
userId int
bonus double
paidByBonus double
return void

SetVIPStatus() public method

public SetVIPStatus ( int userId ) : void
userId int
return void

UpdatePassword() public method

public UpdatePassword ( string login, string password ) : void
login string
password string
return void

UpdateUser() public method

public UpdateUser ( UserDTO user ) : UserDTO
user UserDTO
return UserDTO

UserManager() public method

public UserManager ( IUnitOfWork uOW ) : Common.System
uOW IUnitOfWork
return Common.System

UserValidation() public method

public UserValidation ( UserDTO user, List msgs ) : bool
user UserDTO
msgs List
return bool

deleteVIPById() public method

public deleteVIPById ( int id ) : void
id int
return void