public ActionResult Index(string groupName) { IRepositories repositories = new RepositoryFactory(); DBLE.Group gGroup = new DBLE.Group { Id = Guid.NewGuid(), Name = groupName, Students = new List<DBLE.Student>() }; repositories.GroupRepository.Insert(gGroup); repositories.Commit(); return RedirectToAction("Index"); }
public void AddGroup(Group group) { r.GroupRepository.Insert(group); }