public ActionResult Groups(GroupsVM groupsVM) { if (!(String.IsNullOrEmpty(groupsVM.NewGroupName))) { _teacherService.CreateGroup(groupsVM.NewGroupName); return(RedirectToAction("Groups", new { myGroups = groupsVM.MyGroups })); } else { return(View()); } }