Beispiel #1
0
 /// <summary>
 /// Constructor with DI
 /// </summary>
 ///
 public HomeAPIController(
     IStaffsService staffsService
     )
 {
     _staffsService = staffsService;
 }
Beispiel #2
0
 public StaffsController(IStaffsService staffsService)
 {
     _staffsService = staffsService;
     menu           = _initialService.GetMenuPermissionForLoginUser("Staffs");
     ViewBag.Menus  = menu;
 }
 public StaffsController(IStaffsService ecService, IMapper mapper, IOptions <AppSettings> appSettings)
 {
     _StaffsService = ecService;
     _appSettings   = appSettings.Value;
 }