Esempio n. 1
0
 public CreateModel(MalfunctionContext context,
                    IAuthorizationService authorizationService,
                    UserManager <User> userManager,
                    EquipmentContext equipmentContext)
     : base(context, authorizationService, userManager)
 {
     _equipmentContext = equipmentContext;
 }
 public BasePageModel(
     MalfunctionContext context,
     IAuthorizationService authorizationService,
     UserManager <User> userManager)
 {
     _context              = context;
     _userManager          = userManager;
     _authorizationService = authorizationService;
 }
 public EditModel(MalfunctionContext context,
                  IAuthorizationService authorizationService,
                  UserManager <User> userManager,
                  IConfiguration config)
     : base(context, authorizationService, userManager)
 {
     _fileSizeLimit  = config.GetValue <long>("FileSizeLimit");
     _uploadFilePath = Path.Combine(config.GetValue <string>("StoredFilesPath"), "Malfunction");
     Directory.CreateDirectory(_uploadFilePath);
 }
 public EditModel(MalfunctionContext context,
                  IAuthorizationService authorizationService,
                  UserManager <User> userManager)
     : base(context, authorizationService, userManager)
 {
 }
Esempio n. 5
0
 public IndexModel(MalfunctionContext context)
 {
     _context = context;
 }
 public DoingModel(MalfunctionContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public IndexModel(EquipmentContext context, MalfunctionContext malfunctionContext)
 {
     _equipmentContext   = context;
     _malfunctionContext = malfunctionContext;
 }
 public DetailsModel(MalfunctionContext context)
 {
     _context = context;
 }