예제 #1
0
 public AuthorsController(MyComicListContext context, IAddAuthor addCommand, IUpdateAuthor updateCommand, IDeleteAuthor deleteCommand)
 {
     Context            = context;
     this.addCommand    = addCommand;
     this.updateCommand = updateCommand;
     this.deleteCommand = deleteCommand;
 }
 public GenresController(MyComicListContext context, IAddGenre addCommand, IUpdateGenre updateCommand, IDeleteGenre deleteCommand)
 {
     Context            = context;
     this.addCommand    = addCommand;
     this.updateCommand = updateCommand;
     this.deleteCommand = deleteCommand;
 }
 public AuthController(ITokenService <int, UserLoginDTO> tokenService, IPasswordService passwordService, IRegisterUser registerCommand, MyComicListContext context)
 {
     this.tokenService    = tokenService;
     this.passwordService = passwordService;
     this.registerCommand = registerCommand;
     Context = context;
 }
예제 #4
0
 public RolesController(MyComicListContext context, IAddRole addCommand, IUpdateRole updateCommand, IDeleteRole deleteCommand)
 {
     Context            = context;
     this.addCommand    = addCommand;
     this.updateCommand = updateCommand;
     this.deleteCommand = deleteCommand;
 }
 public PublishersController(MyComicListContext context, IGetPublishers getCommand, IAddPublisher addCommand, IUpdatePublisher updateCommand, IDeletePublisher deleteCommand)
 {
     Context            = context;
     this.getCommand    = getCommand;
     this.addCommand    = addCommand;
     this.updateCommand = updateCommand;
     this.deleteCommand = deleteCommand;
 }
예제 #6
0
 public UsersController(MyComicListContext context, IGetUsers getCommand, IGetOneUser getOneCommand, IAddUser addCommand,
                        IUpdateUser updateCommand, IDeleteUser deleteCommand, IPasswordService passwordService)
 {
     Context              = context;
     this.getCommand      = getCommand;
     this.getOneCommand   = getOneCommand;
     this.addCommand      = addCommand;
     this.updateCommand   = updateCommand;
     this.deleteCommand   = deleteCommand;
     this.passwordService = passwordService;
 }
 public ComicsController(MyComicListContext context, IConfiguration config, IGetComics getCommand, IGetOneComic getOneCommand,
                         IAddComic addCommand, IUpdateComic updateCommand, IDeleteComic deleteCommand)
 {
     Context                     = context;
     Config                      = config;
     this.getCommand             = getCommand;
     this.getOneCommand          = getOneCommand;
     this.addCommand             = addCommand;
     this.updateCommand          = updateCommand;
     this.deleteCommand          = deleteCommand;
     this.allowedFileUploadTypes = config.GetSection("AllowedFileUploadTypes")
                                   .AsEnumerable().Where(c => c.Value != null)
                                   .Select(c => c.Value)
                                   .ToList();
 }
예제 #8
0
 public EFUpdateAuthor(MyComicListContext context) : base(context)
 {
 }
 public EFDeleteAuthor(MyComicListContext context) : base(context)
 {
 }
 public EFAddPublisher(MyComicListContext context) : base(context)
 {
 }
예제 #11
0
 public EFAddRole(MyComicListContext context) : base(context)
 {
 }
예제 #12
0
 public EFGetUsers(MyComicListContext context) : base(context)
 {
 }
 public EFRegisterUser(MyComicListContext context, IEmailSender emailSender) : base(context)
 {
     this.emailSender = emailSender;
 }
예제 #14
0
 public EFDeleteRole(MyComicListContext context) : base(context)
 {
 }
 protected EFBaseCommand(MyComicListContext context) => Context = context;
 public EFAddAuthor(MyComicListContext context) : base(context)
 {
 }
 public EFDeleteUser(MyComicListContext context) : base(context)
 {
 }
예제 #18
0
 public EFGetPublishers(MyComicListContext context) : base(context)
 {
 }
 public EFGetOneUser(MyComicListContext context) : base(context)
 {
 }
 public JWTUserService(MyComicListContext context, IConfiguration config, IPasswordService passwordService)
 {
     this.context         = context;
     this.config          = config;
     this.passwordService = passwordService;
 }
예제 #21
0
 public EFUpdateRole(MyComicListContext context) : base(context)
 {
 }
예제 #22
0
 public LoginService(MyComicListContext context)
 {
     this.context = context;
 }
예제 #23
0
 public EFAddComic(MyComicListContext context) : base(context)
 {
     genres   = new List <ComicGenres>();
     authors  = new List <ComicAuthors>();
     pictures = new List <Picture>();
 }
 public EFUpdateUser(MyComicListContext context) : base(context)
 {
 }
예제 #25
0
 public EFGetMyList(MyComicListContext context) : base(context)
 {
 }
 public EFDeleteFromMyList(MyComicListContext context) : base(context)
 {
 }
예제 #27
0
 public EFAddToMyList(MyComicListContext context) : base(context)
 {
 }