Example #1
0
 public ActionResult ManageEmployeeGroup(AssignEmployeeToGroupViewModel model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             IdentityManager _manager = new IdentityManager();
             _manager.AddUserToGroupUpdated(model.EmployeeID, model.GroupID);
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(model));
     }
 }