public HttpResponseMessage getProfileByProfileID(string ID)
 {
     ProfileCore objProfileCoreForView = null;
     ProfileCore objProfileCore = new ProfileCore();
     using (objProfileCore as IDisposable)
         objProfileCore.GetByProfileID(ID, out objProfileCoreForView);
     objProfileCore = null;
     return Request.CreateResponse(HttpStatusCode.OK, objProfileCoreForView,
       Configuration.Formatters.JsonFormatter);
 }
 public HttpResponseMessage getByProfileID(string ID)
 {
     ProfileCore objProfCore = null;
     if (!string.IsNullOrWhiteSpace(ID))
     {
         ProfileCore objProfileCore = new ProfileCore();
         using (objProfileCore as IDisposable)
             objProfileCore.GetByProfileID(ID, out objProfCore);
         objProfileCore = null;
     }
     return Request.CreateResponse(HttpStatusCode.OK, objProfCore,
       Configuration.Formatters.JsonFormatter);
 }