public IActionResult Get() { try { var obj = db.GetDetails(); if (obj == null) { return(NotFound()); } return(Ok(obj)); } catch (Exception) { return(BadRequest()); } }