public async Task <IActionResult> Create([Bind("PetID,Name,DateOfBirth,Specie")] Pet pet)
        {
            if (ModelState.IsValid)
            {
                _context.Add(pet);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(pet));
        }
        public async Task <IActionResult> Create([Bind("OwnerID,FirstName,LastName,DateOfBirth,Adress,PhoneNumber,EmailAdress")] Owner owner)
        {
            if (ModelState.IsValid)
            {
                _context.Add(owner);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(owner));
        }
        public async Task <IActionResult> Create([Bind("ID,OwnerID,UserName,Password")] Account account)
        {
            if (ModelState.IsValid)
            {
                _context.Add(account);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["OwnerID"] = new SelectList(_context.Owners, "OwnerID", "Adress", account.OwnerID);
            return(View(account));
        }