public bool OptionExists(int id)
{
return _context.Option.Any(e => e.OptionID == id);
//var city = AggregateOptionExists.GetAggregateOption(id);
//if (city == null)
// {
// return NotFound();
// }
// return city;
}
I am having null values in Db how to handle null reference exception at _context.Option