protected override void Seed(DefaultDbContext ctx)
        {
            ImageToByteConverter converter = new ImageToByteConverter();

            ctx.People.AddRange(new Person[]
            {
                new Person
                {
                    FirstName  = "First name 1",
                    LastName   = "Last name 1",
                    MiddleName = "Middle name 1",
                    Image      = converter.Convert(Image.FromFile("person.png"))
                }
            });

            ctx.SaveChanges();
        }
        public async Task <IActionResult> Register(InputRegisterModel model, string userImage)
        {
            if (ModelState.IsValid)
            {
                byte[]        image    = ImageToByteConverter.Convert(userImage);
                ActionMessage response = await userService.CreateAccount(model, image);

                if (User.Identity.IsAuthenticated)
                {
                    return(RedirectToAction("ActionMessage", "Dashboard", response));
                }
                else
                {
                    return(RedirectToAction("Login", "Auth"));
                }
            }
            return(View(model));
        }