public bool RemoveAdmin(int adminId, int toBeDeltedAdminId) { if (IsAnAdmin(adminId)) { var adminforCatalog = _catalogRepository.GetAllAdminIds(Id); if (adminforCatalog.Count > 1) { var adminToBeDelete = _catalogRepository.GetAdmin(toBeDeltedAdminId, Id); if (adminToBeDelete == null) { throw new ArgumentException(string.Format("No such admin exists {0}", adminId)); } return(_catalogRepository.DeleteAdmin(adminToBeDelete)); } } return(false); }