public IActionResult Create(GroupModel model)
 {
     if (ModelState.IsValid)
     {
         _storage.Add(Mapper.ToDomain(model));
         return(RedirectToAction("Index"));
     }
     return(View(model));
 }
Exemplo n.º 2
0
 public Group Add(Group group)
 {
     return(groupStorage.Add(group));
 }