public IActionResult Delete(long id, string username, string userid, string projectid) { var book = _linkService.GetByGanttId(id); if (book == null) { return(NotFound()); } _linkService.RemoveByGanttId(id); // DelLink logger =new DelLink(){ // type="Gantt@DeleteDependency", // id ="userid", // description=username+" deleted a dependency from gantt chart", // published=DateTime.Now, // data=new Data(){ // id=book.id // } // }; // RabbitMQProducer producer=new RabbitMQProducer(); // producer.DelLink(logger); Logger logger1 = new Logger() { type = "activity@AddUserStory", id = userid, project_id = projectid, description = username + " deleted a dependency from gantt chart", published = DateTime.Now, data = new Data() { id = book.id } }; //Console.WriteLine(JsonConvert.SerializeObject(logger1)); // Console.WriteLine(logger1); _loggerService.Create(logger1); // RabbitMQProducer producer1=new RabbitMQProducer(); // producer1.DelLinkAct(logger1); return(NoContent()); }