public IActionResult Create(CreateViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            AlumniProfile alumniprofile = new AlumniProfile()
            {
                Id          = Guid.NewGuid(),
                Position    = model.Position,
                Company     = model.Company,
                Location    = model.Location,
                Description = model.Description,
                FromDate    = model.FromDate,
                ToDate      = model.ToDate
            };

            this._context.AlumniProfiles.Add(alumniprofile);
            this._context.SaveChanges();

            return(View());
        }
        public IActionResult Init()
        {
            var alumniprofile = this._context.AlumniProfiles.FirstOrDefault();

            if (alumniprofile == null)
            {
                AlumniProfile post1 = new AlumniProfile()
                {
                    Id          = Guid.Parse("3a88bea9-8a65-4c23-941a-972a6195b940"),
                    Description = @"The International 2018 was the eight iteration of 
                                Dota 2's flagship annual championship. Hosted by Valve Corporation,
                                it took place at the Rogers Arena in Vancouver,
                                British Columbia, being the first to be celebrated 
                                outside of the United States.",
                    IsPublished = true,
                    Position    = "Worker",
                    ToDate      = DateTime.UtcNow,
                    Location    = "CSM BATAAN",
                    Timestamp   = DateTime.UtcNow,
                    Company     = "Lakad Matatag!!!"
                };
                this._context.AlumniProfiles.Add(post1);


                AlumniProfile post2 = new AlumniProfile()
                {
                    Id          = Guid.Parse("3a88bea9-8a65-4c23-941a-972a6195b940"),
                    Description = @"The International 2018 was the eight iteration of 
                                Dota 2's flagship annual championship. Hosted by Valve Corporation,
                                it took place at the Rogers Arena in Vancouver,
                                British Columbia, being the first to be celebrated 
                                outside of the United States.",
                    IsPublished = true,
                    Position    = "Worker2",
                    ToDate      = DateTime.UtcNow,
                    Location    = "CSM BATAAN",
                    Timestamp   = DateTime.UtcNow,
                    Company     = "Exbatallion"
                };
                this._context.AlumniProfiles.Add(post2);

                AlumniProfile post3 = new AlumniProfile()
                {
                    Id          = Guid.Parse("3a88bea9-8a65-4c23-941a-972a6195b940"),
                    Description = @"The International 2018 was the eight iteration of 
                                Dota 2's flagship annual championship. Hosted by Valve Corporation,
                                it took place at the Rogers Arena in Vancouver,
                                British Columbia, being the first to be celebrated 
                                outside of the United States.",
                    IsPublished = true,
                    Position    = "Worker3",
                    ToDate      = DateTime.UtcNow,
                    Location    = "CSM BATAAN",
                    Timestamp   = DateTime.UtcNow,
                    Company     = "HypeBeast!!!"
                };
                this._context.AlumniProfiles.Add(post3);

                this._context.SaveChanges();
            }

            var user = this._context.Users.FirstOrDefault();

            if (user == null)
            {
                var admin = new User()
                {
                    Id               = Guid.Parse("b2e5a4fc-ca4e-4d3f-b9ac-d8a088cd6401"),
                    EmailAddress     = "*****@*****.**",
                    FirstName        = "Hayna",
                    LastName         = "Mallo",
                    Gender           = Infrastructures.Data.Enums.Gender.Male,
                    LoginStatus      = Infrastructures.Data.Enums.LoginStatus.Active,
                    LoginTrials      = 0,
                    RegistrationCode = RandomString(6),
                    Password         = BCrypt.BCryptHelper.HashPassword("Accord605", BCrypt.BCryptHelper.GenerateSalt(8))
                };
                this._context.Users.Add(admin);
                this._context.SaveChanges();
                this._context.UserRoles.Add(new UserRole()
                {
                    Id     = Guid.Parse("b2e5a4fc-ca4e-4d3f-b9ac-d8a088cd6401"),
                    Role   = Infrastructures.Data.Enums.Role.Admin,
                    UserId = admin.Id
                });
                this._context.SaveChanges();
            }
            return(RedirectToAction("index"));
            //return RedirectPermanent("~/posts/index");
        }