// [ValidateAntiForgeryToken] public IActionResult RemoveRoom(int id, int projectId, int isPersonal) { using (var context = new ChatContext(Context, Configuration)) { context.RemoveChatRoom(id); context.UserChatChannelRead(UserId, projectId, id); } return(ViewComponent("ChatWIndow", new IncomingIdRequest { Id = id, ProjectId = projectId, UserId = isPersonal })); }