public IActionResult Get(int id) { try { return(Ok(_setService.Get(id).ToApiModel())); } catch (Exception ex) { ModelState.AddModelError("GetSet", ex.StackTrace); return(BadRequest(ModelState)); } }