public async Task <IActionResult> Create([Bind("ConfigId,Brand,Model,Storage,Cpu,CpuType,CpuSpeed,RAM,HasGPU,HeadphoneOutput,Capable5g,FrontCameraMegapixel,BackCameraMegapixel,BatteryCapacity,ExchangableBattery,Depth,Height,Width,Weight,WirelessCharging,WirelessStandard,DualSim,SimCard,FastCharging,WaterResistance,ReleaseYear")] PhoneProperties phoneProperties)
        {
            if (ModelState.IsValid)
            {
                _context.Add(phoneProperties);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(phoneProperties));
        }
        public async Task <IActionResult> Create([Bind("ConfigId,Brand,Model,Storage,HasMemoryCardReader,Cpu,CpuCoreCount,CpuSpeed,RAM,HasGPU,GPU,HeadphoneOutput,Is2gCapable,Is3gCapable,Is4gCapable,Is5gCapable,HasBluetooth,HasGPS,IsWifiCapable,BuiltInCamera,FrontCamera,FrontCameraMegapixel,BackCameraMegapixel,MaximumLensApeture,RearCameraCount,CanRecordVideo,MaxFramerateMaxResolution,MaxFramerateMinResolution,BatteryCapacity,ExchangableBattery,Depth,Height,Width,Weight,WirelessCharging,WirelessStandard,DualSim,SimCard,FastCharging,WaterResistance,OriginalPrice,ReleaseDate,ProductPage,isSelected")] PhoneProperties phoneProperties)
        {
            if (ModelState.IsValid)
            {
                _context.Add(phoneProperties);
                await _context.SaveChangesAsync();

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