C# Class BistroDriveWebApp.Models.UserRepository

Show file Open project: PI-13-5/BistroDriveWebApp

Public Methods

Method Description
AddUserReview ( string id_user, string owner, int mark, string text ) : void
DeleteAllUserToken ( string id_user ) : void
DeleteUserReview ( int id ) : void
EditUserReview ( int id, int mark, string text ) : void
FindUserDescription ( string id ) : userdescription
GenerateToken ( string id_user ) : usertoken
GetAllUser ( ) : IEnumerable
GetAllUser ( int page, int pageSize, int &usercount, string search = "", int CityId, bool travel = false ) : IEnumerable
GetReviewById ( int id ) : review
GetReviewByUserId ( string user_id ) : List
GetTokenById ( int id ) : usertoken
GetTokenByToken ( string token ) : usertoken
GetUserAvatar ( string id ) : string
GetUserById ( string id ) : aspnetuser
GetUserByIdBuffered ( string id ) : aspnetuser
GetUserByName ( string userName ) : aspnetuser
GetUserByToken ( string id ) : aspnetuser
GetUserDescription ( string id ) : string
GetUserDescriptionBuffered ( string id ) : string
GetUsers ( ) : IEnumerable
RefreshBuffer ( ) : void
UpdateUser ( string id, ProfileSettingsViewModel model ) : void
UpdateUserAvatar ( string id, string Url ) : void
UpdateUserDescription ( string id, string description ) : void
UserRepository ( BistroDriveEntities _context ) : System

Private Methods

Method Description
UpdateUserRaiting ( string Id_User ) : void

Method Details

AddUserReview() public method

public AddUserReview ( string id_user, string owner, int mark, string text ) : void
id_user string
owner string
mark int
text string
return void

DeleteAllUserToken() public method

public DeleteAllUserToken ( string id_user ) : void
id_user string
return void

DeleteUserReview() public method

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

EditUserReview() public method

public EditUserReview ( int id, int mark, string text ) : void
id int
mark int
text string
return void

FindUserDescription() public method

public FindUserDescription ( string id ) : userdescription
id string
return userdescription

GenerateToken() public method

public GenerateToken ( string id_user ) : usertoken
id_user string
return usertoken

GetAllUser() public method

public GetAllUser ( ) : IEnumerable
return IEnumerable

GetAllUser() public method

public GetAllUser ( int page, int pageSize, int &usercount, string search = "", int CityId, bool travel = false ) : IEnumerable
page int
pageSize int
usercount int
search string
CityId int
travel bool
return IEnumerable

GetReviewById() public method

public GetReviewById ( int id ) : review
id int
return review

GetReviewByUserId() public method

public GetReviewByUserId ( string user_id ) : List
user_id string
return List

GetTokenById() public method

public GetTokenById ( int id ) : usertoken
id int
return usertoken

GetTokenByToken() public method

public GetTokenByToken ( string token ) : usertoken
token string
return usertoken

GetUserAvatar() public method

public GetUserAvatar ( string id ) : string
id string
return string

GetUserById() public method

public GetUserById ( string id ) : aspnetuser
id string
return aspnetuser

GetUserByIdBuffered() public method

public GetUserByIdBuffered ( string id ) : aspnetuser
id string
return aspnetuser

GetUserByName() public method

public GetUserByName ( string userName ) : aspnetuser
userName string
return aspnetuser

GetUserByToken() public method

public GetUserByToken ( string id ) : aspnetuser
id string
return aspnetuser

GetUserDescription() public method

public GetUserDescription ( string id ) : string
id string
return string

GetUserDescriptionBuffered() public method

public GetUserDescriptionBuffered ( string id ) : string
id string
return string

GetUsers() public method

public GetUsers ( ) : IEnumerable
return IEnumerable

RefreshBuffer() public method

public RefreshBuffer ( ) : void
return void

UpdateUser() public method

public UpdateUser ( string id, ProfileSettingsViewModel model ) : void
id string
model ProfileSettingsViewModel
return void

UpdateUserAvatar() public method

public UpdateUserAvatar ( string id, string Url ) : void
id string
Url string
return void

UpdateUserDescription() public method

public UpdateUserDescription ( string id, string description ) : void
id string
description string
return void

UserRepository() public method

public UserRepository ( BistroDriveEntities _context ) : System
_context BistroDriveEntities
return System