public void RegisterUser() { _context = new workshopEntities(); user user = new user(); var u = _context.users.ToList(); user.Id = u.Count(); Console.WriteLine("Please Enter Name:"); user.FirstName = Console.ReadLine(); Console.WriteLine("Please Enter Last Name:"); user.LastName = Console.ReadLine(); Console.WriteLine("Please Enter Position:"); user.Position = Console.ReadLine(); _context.users.Add(user); _context.SaveChanges(); Console.WriteLine("Your Changes have been changed"); Console.WriteLine(""); }