public async Task<IActionResult> Create([Bind("UserId,Name,Password,YearBorn")] Login login)
 {
     if (ModelState.IsValid)
     {
         _context.Add(login);
         await _context.SaveChangesAsync();
         return RedirectToAction(nameof(Index));
     }
     return View(login);
 }
        public async Task <IActionResult> Create([Bind("AppleId,Name,Model,Year")] Apple apple)
        {
            if (ModelState.IsValid)
            {
                _context.Add(apple);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(apple));
        }