[Solved] System.ArgumentNullException: Value cannot be null. Parameter name: source [closed]

Seats will be null if you call the method without matching data / query argument. You need to also check that, like so for instance: [HttpPost] public String Indexhome( IEnumerable<Seat> Seats ) { if ((Seats == null) || !Seats.Any(s => s.IsSelected)) { return “you didnt select any seats”; } else { return “you selected ” … Read more