public HttpResponseMessage DeleteSourceNode([FromUri] int id) { var sourceNode = _entityLogic.GetSingle(c => c.Id == id); _entityLogic.Delete(sourceNode); return(Request.CreateResponse(HttpStatusCode.OK, StatusCodes.DELETED)); }
public HttpResponseMessage DeleteChannel([FromUri] int id) { var channel = _context.Channels.SingleOrDefault(c => c.Id == id); var deleteSourceNode = new EntityLogic <Channel>(); deleteSourceNode.Delete(channel); return(Request.CreateResponse(HttpStatusCode.OK, StatusCodes.DELETED)); }