public async Task <IActionResult> LeaveGroup(int userId, int groupId) { _groupLogic.LeaveGroupUser(userId, groupId); GroupModel group = _groupLogic.FormGroupModel(groupId, User.Identity.Name); return(RedirectToRoute(new { controller = "Home", action = "Index" })); }