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