Example #1
0
        public bool Delete(EmployeeEntity EmployeeEntity, Guid CountryId)
        {
            CountryEntity CountryEntity = new CountryEntity {
                Id = CountryId
            };

            if (!CountryValidator.ValidateDelete(CountryEntity))
            {
                throw new BadRequestException(CountryEntity);
            }
            UnitOfWork.CountryRepository.Delete(CountryId);
            UnitOfWork.Complete();
            return(true);
        }