// GET api/Proyect/Id public IHttpActionResult Get(int Id) { try { var mng = new PreferenceManager(); var preference = new Preference { Id = Id }; apiResp.Data = mng.Retrieve(preference); return(Ok(apiResp)); } catch (BussinessException bex) { return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message))); } }