Example #1
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IHostingEnvironment env, TVShowsContext context)
 {
     app.UseStaticFiles();
     app.UseMvc();
     // инициализация базы данных
     DbInitializer.Initialize(context);
 }
Example #2
0
 public ShowsController(IGetShowsWEBCommand getShowsCommand, IGetShowCommand getShowCommand, IAddShowCommand addShowCommand, IEditShowCommand editShowCommand, IDeleteShowCommand deleteShowCommand, TVShowsContext context, IGetActorsCommand getActorsCommand)
 {
     this.getShowsCommand   = getShowsCommand;
     this.getShowCommand    = getShowCommand;
     this.addShowCommand    = addShowCommand;
     this.editShowCommand   = editShowCommand;
     this.deleteShowCommand = deleteShowCommand;
     Context = context;
 }
Example #3
0
        static void Main(string[] args)
        {
            var tv = new TVShowsContext();

            tv.Roles.Add(new Role
            {
                RoleName = "Administrator"
            });

            //tv.Users.Add(new User
            //{
            //    FirstName = "Dusan",
            //    LastName = "Krsmanvic",
            //    Email = "*****@*****.**",
            //    Gender = 'm',
            //    Password = "******",
            //    RoleId = 1,
            //    CityId = 1,
            //    Token = "dfjsdofjsdojojsog",
            //    Username = "******"
            //});

            tv.SaveChanges();
        }
Example #4
0
 public EFAddRoleCommand(TVShowsContext context) : base(context)
 {
 }
 public EFGetCategoryCommand(TVShowsContext context)
     : base(context)
 {
 }
Example #6
0
 public UserShowsRepository(TVShowsContext context)
 {
     _context = context;
 }
Example #7
0
 public EFGetShowsWEBCommnad(TVShowsContext context) : base(context)
 {
 }
Example #8
0
 public EFAddCityCommand(TVShowsContext context) : base(context)
 {
 }
Example #9
0
 public EFAddShowCommands(TVShowsContext context) : base(context)
 {
 }
Example #10
0
 public EFGetUserCommand(TVShowsContext context) : base(context)
 {
 }
Example #11
0
 protected EFBaseCommand(TVShowsContext context) => Context = context;
Example #12
0
 public EFAddUserCommand(TVShowsContext context, IEmailSender emailSender) : base(context)
 {
     this.emailSender = emailSender;
 }
Example #13
0
 public EFGetRolesCommand(TVShowsContext context) : base(context)
 {
 }
Example #14
0
 public EFAuthCommand(TVShowsContext context) : base(context)
 {
 }
Example #15
0
 public EFDeleteRoleCommand(TVShowsContext context) : base(context)
 {
 }
Example #16
0
 public EFDeleteUserCommand(TVShowsContext context) : base(context)
 {
 }
Example #17
0
 public EFGetActorsCommand(TVShowsContext context) : base(context)
 {
 }
Example #18
0
 public EFDeleteCityCommand(TVShowsContext context) : base(context)
 {
 }
Example #19
0
 public EFEditShowCommand(TVShowsContext context) : base(context)
 {
 }
Example #20
0
 public OperationsController(TVShowsContext context)
 {
     _context = context;
 }
Example #21
0
 public EFGetCommentCommand(TVShowsContext context) : base(context)
 {
 }
Example #22
0
 public EFAddActorCommand(TVShowsContext context) : base(context)
 {
 }