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