public HttpResponseMessage DeleteChannelById([FromUri] int id) { try { ChannelService svc = new ChannelService(); svc.Channel_DeleteById(id); } catch (System.Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex)); } return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse())); }//DeleteChannelById