Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 public void AddGroup(Group group)
 {
     r.GroupRepository.Insert(group);
 }