/// <summary> /// Deletes a particular Addresses /// </summary> /// <param name="addressId"></param> /// <returns></returns> public int DeleteAddress(int addressId) { int success = 0; if (addressId > 0) { using (var scope = new TransactionScope()) { var address = _unitOfWork.AddressRepository.GetByID(addressId); if (address != null) { _unitOfWork.AddressesDelete(addressId); scope.Complete(); success = 1; } } } return(success); }