// GET: ActivityAssigneeGroup/Edit/{id}
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            bool isSuperAdmin          = User.IsInAnyRoles("SuperAdmin");
            var  organisationId        = UserOrganisationId;
            var  centres               = NidanBusinessService.RetrieveCentres(organisationId, e => isSuperAdmin || e.CentreId == UserCentreId);
            var  personnels            = NidanBusinessService.RetrievePersonnels(organisationId, e => true).Items.ToList();
            var  activityAssigneeGroup = NidanBusinessService.RetrieveActivityAssigneeGroup(organisationId, id.Value, e => true);

            if (activityAssigneeGroup == null)
            {
                return(HttpNotFound());
            }
            var viewModel = new ActivityAssigneeGroupViewModel
            {
                Centres               = new SelectList(centres, "CentreId", "Name"),
                Personnels            = new SelectList(personnels, "PersonnelId", "Fullname"),
                ActivityAssigneeGroup = activityAssigneeGroup
            };

            return(View(viewModel));
        }