public IActionResult Post(Object value) { var json = value.ToString(); FlightPlan flightPlan = JsonConvert.DeserializeObject <FlightPlan>(json); try { _dataBase.Add(flightPlan); } catch (NullReferenceException) { return(BadRequest("Please Check Input File!")); } return(Ok("Flight Plan With ID " + flightPlan.HashId() + " Has Been Added To DataBase")); }