public HttpResponseMessage Delete(string id)
 {
     try
     {
         if (publishermanager.DeleteByID(id))
         {
             return(Request.CreateResponse(HttpStatusCode.OK, "Publisher Deleted Successfully"));
         }
         else
         {
             return(Request.CreateResponse(HttpStatusCode.BadRequest, "Deleting Publisher Failed"));
         }
     }
     catch (InvalidPublisherException ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
 }