C# Class HomeController, code

Inheritance: Controller
Mostrar archivo Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
GetUserId ( ) : int
HideQueryString ( ) : ActionResult
HomeController ( )
HomeController ( ApplicationDbContext context )
HomeController ( DataContext context, IRepository repo )
HomeController ( IConfiguration config )
HomeController ( IDataAccess dataAccess )
HomeController ( IMemoryCache memoryCache )
HomeController ( IPlatformRepository platformRepository, IDeviceRepository deviceRepository )
HomeController ( IService one, IService two, IService three )
HomeController ( MySpecialClassWithDependencies mySpecialClassWithDependencies )
HomeController ( TimeHub timeHub )
Index ( ) : ActionResult
Index ( ) : IActionResult
Index ( ) : Task
Index ( ) : Task
Index12 ( int? id ) : ActionResult
Picload ( IFormFile file ) : Task
Print ( string location, string startDate, string endDate ) : ActionResult
Redirect ( decimal width, decimal height ) : IActionResult
ToIndex ( ) : ActionResult
Tut116 ( ) : ActionResult
Tut142 ( ) : ActionResult
Tut143 ( ) : ActionResult
UploadFile ( ) : ActionResult
UserService ( IHttpContextAccessor httpContextAccessor )

Private Methods

Method Description
Example ( TestModel model ) : IActionResult
ForAdminAndManager ( ) : Task
ForAdminAndManager1 ( ) : Task
ForAdminAndManager2 ( ) : Task
ForAdminOnly ( ) : Task
ForEveryone ( ) : Task
ForWriterOnly ( ) : Task
Index ( Guid accountId, int permission, int id ) : ActionResult
Index ( TblEmployee employee ) : ActionResult
Index12 ( ) : ActionResult
MyIndex ( UserLogViewModel log ) : ActionResult
UploadFile ( MyModal Modal ) : ActionResult

Method Details

GetUserId() public method

public GetUserId ( ) : int
return int

HideQueryString() public method

public HideQueryString ( ) : ActionResult
return ActionResult

HomeController() public method

public HomeController ( )

HomeController() public method

public HomeController ( ApplicationDbContext context )
context ApplicationDbContext

HomeController() public method

public HomeController ( DataContext context, IRepository repo )
context DataContext
repo IRepository

HomeController() public method

public HomeController ( IConfiguration config )
config IConfiguration

HomeController() public method

public HomeController ( IDataAccess dataAccess )
dataAccess IDataAccess

HomeController() public method

public HomeController ( IMemoryCache memoryCache )
memoryCache IMemoryCache

HomeController() public method

public HomeController ( IPlatformRepository platformRepository, IDeviceRepository deviceRepository )
platformRepository IPlatformRepository
deviceRepository IDeviceRepository

HomeController() public method

public HomeController ( IService one, IService two, IService three )
one IService
two IService
three IService

HomeController() public method

public HomeController ( MySpecialClassWithDependencies mySpecialClassWithDependencies )
mySpecialClassWithDependencies MySpecialClassWithDependencies

HomeController() public method

public HomeController ( TimeHub timeHub )
timeHub TimeHub

Index() public method

public Index ( ) : ActionResult
return ActionResult

Index() public method

public Index ( ) : IActionResult
return IActionResult

Index() public method

public Index ( ) : Task
return Task

Index() public method

public Index ( ) : Task
return Task

Index12() public method

public Index12 ( int? id ) : ActionResult
id int?
return ActionResult

Picload() public method

public Picload ( IFormFile file ) : Task
file IFormFile
return Task

Print() public method

public Print ( string location, string startDate, string endDate ) : ActionResult
location string
startDate string
endDate string
return ActionResult

Redirect() public method

public Redirect ( decimal width, decimal height ) : IActionResult
width decimal
height decimal
return IActionResult

ToIndex() public method

public ToIndex ( ) : ActionResult
return ActionResult

Tut116() public method

public Tut116 ( ) : ActionResult
return ActionResult

Tut142() public method

public Tut142 ( ) : ActionResult
return ActionResult

Tut143() public method

public Tut143 ( ) : ActionResult
return ActionResult

UploadFile() public method

public UploadFile ( ) : ActionResult
return ActionResult

UserService() public method

public UserService ( IHttpContextAccessor httpContextAccessor )
httpContextAccessor IHttpContextAccessor