// GET api/<controller>/5 public IHttpActionResult Get(int id) { try { var smsManagement = new SMSManagement(); var sms = new SMS() { Id = id }; apiResponse = new ApiResponse(); apiResponse.Data = smsManagement.RetrieveById(sms); return(Ok(apiResponse)); } catch (Exception ex) { return(InternalServerError(ex)); } }