public ActionResult DeleteConfirmed(int id) { AccessControl accessControl = _AccessControlService.GetById(id); _AccessControlService.Delete(accessControl); _AccessControlTransaction.Create(_AccessControlTransaction.LogTransaction(accessControl.AccessControlID, Model.Common.Constants.TransactionConst.TransactionType.Deleted, User.Identity.Name, _MachineService.GetById(accessControl.MachineID).MachineName, accessControl.PasswordEntry)); return(RedirectToAction("Index")); }
public void DeleteAcl(String repository, String domain, String name) { AclIdentity aclIdentity = new AclIdentity(); aclIdentity.RepositoryName = repository; aclIdentity.Domain = domain; aclIdentity.Name = name; List <AclIdentity> aclIdentityList = new List <AclIdentity>(); aclIdentityList.Add(aclIdentity); accessControlService.Delete(aclIdentityList); }