public SimpleResponse <bool> Any(EmployeeTerritoryDeleteRequest request)
        {
            if (Validator != null)
            {
                Validator.ValidateAndThrow(new EmployeeTerritory {
                    EmployeeId = request.EmployeeId, TerritoryId = request.TerritoryId
                }, ApplyTo.Delete);
            }

            OnBeforeEmployeeTerritoryDeleteRequest(request);
            var output = Repository.Delete(request);

            OnAfterEmployeeTerritoryDeleteRequest(request, output);
            if (!output.Result)
            {
                throw new HttpError(HttpStatusCode.NotFound, "NullReferenceException", "EmployeeTerritory matching [EmployeeId = {0}, TerritoryId = {1}]  does not exist".Fmt(request.EmployeeId, request.TerritoryId));
            }
            return(output);
        }
 partial void OnAfterEmployeeTerritoryDeleteRequest(EmployeeTerritoryDeleteRequest request, SimpleResponse <bool> deleted);
 partial void OnBeforeEmployeeTerritoryDeleteRequest(EmployeeTerritoryDeleteRequest request);