public HttpResponseMessage Delete(int id)
 {
     try
     {
         ClaimsPrincipal p = RequestContext.Principal as ClaimsPrincipal;
         RegisterDA.DeleteRegister(id, p.Claims);
         return(new HttpResponseMessage(HttpStatusCode.OK));
     }
     catch
     {
         return(new HttpResponseMessage(HttpStatusCode.InternalServerError));
     }
 }