public ActionResult Create(GroupCreateModel group)
 {
     if (ModelState.IsValid)
     {
         _groupService.Add(group, User.Identity.GetUserId());
         return RedirectToAction("Index");
     }
     return View(group);
 }
 public bool Add(GroupCreateModel model, string createdBy)
 {
     var group = new Group();
     group.Name = model.Name;
     group.Description = model.Description;
     group.UserId = createdBy;
     try
     {
         _groupRepository.Add(group);
         return true;
     }
     catch (Exception ex)
     {
         return false;
     }
 }